File tree Expand file tree Collapse file tree
src/main/kotlin/recloudstream
src/main/kotlin/recloudstream Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Use an integer for version numbers
2- version = 1
1+ // use an integer for version numbers
2+ version = 2
33
44cloudstream {
55 // All of these properties are optional, you can safely remove any of them.
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import com.lagradost.cloudstream3.newMovieLoadResponse
1414import com.lagradost.cloudstream3.newMovieSearchResponse
1515import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
1616import com.lagradost.cloudstream3.utils.ExtractorLink
17+ import com.lagradost.cloudstream3.utils.StringUtils.encodeUri
1718import com.lagradost.cloudstream3.utils.loadExtractor
18- import java.net.URLEncoder
1919
2020class DailymotionProvider : MainAPI () {
2121
@@ -26,13 +26,15 @@ class DailymotionProvider : MainAPI() {
2626 data class VideoItem (
2727 val id : String ,
2828 val title : String ,
29+ @Suppress(" PropertyName" )
2930 val thumbnail_360_url : String
3031 )
3132
3233 data class VideoDetailResponse (
3334 val id : String ,
3435 val title : String ,
3536 val description : String ,
37+ @Suppress(" PropertyName" )
3638 val thumbnail_720_url : String
3739 )
3840
@@ -108,8 +110,4 @@ class DailymotionProvider : MainAPI() {
108110 )
109111 return true
110112 }
111-
112- companion object {
113- fun String.encodeUri (): String = URLEncoder .encode(this , " utf8" )
114- }
115113}
Original file line number Diff line number Diff line change 1- // Use an integer for version numbers
2- version = 6
1+ // use an integer for version numbers
2+ version = 7
33
44cloudstream {
55 // All of these properties are optional, you can safely remove any of them.
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import com.lagradost.cloudstream3.*
44import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
55import com.lagradost.cloudstream3.utils.ExtractorLink
66import com.lagradost.cloudstream3.utils.Qualities
7+ import com.lagradost.cloudstream3.utils.StringUtils.encodeUri
78import com.lagradost.cloudstream3.utils.loadExtractor
8- import java.net.URLEncoder
99
1010class InvidiousProvider : MainAPI () { // all providers must be an instance of MainAPI
1111 override var mainUrl = " https://iv.ggtyler.dev"
@@ -130,8 +130,4 @@ class InvidiousProvider : MainAPI() { // all providers must be an instance of Ma
130130 )
131131 return true
132132 }
133-
134- companion object {
135- fun String.encodeUri () = URLEncoder .encode(this , " utf8" )
136- }
137133}
You can’t perform that action at this time.
0 commit comments