File tree 4 files changed +8
-14
lines changed
src/main/kotlin/recloudstream
src/main/kotlin/recloudstream
4 files changed +8
-14
lines changed 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
3
3
4
4
cloudstream {
5
5
// 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
14
14
import com.lagradost.cloudstream3.newMovieSearchResponse
15
15
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
16
16
import com.lagradost.cloudstream3.utils.ExtractorLink
17
+ import com.lagradost.cloudstream3.utils.StringUtils.encodeUri
17
18
import com.lagradost.cloudstream3.utils.loadExtractor
18
- import java.net.URLEncoder
19
19
20
20
class DailymotionProvider : MainAPI () {
21
21
@@ -26,13 +26,15 @@ class DailymotionProvider : MainAPI() {
26
26
data class VideoItem (
27
27
val id : String ,
28
28
val title : String ,
29
+ @Suppress(" PropertyName" )
29
30
val thumbnail_360_url : String
30
31
)
31
32
32
33
data class VideoDetailResponse (
33
34
val id : String ,
34
35
val title : String ,
35
36
val description : String ,
37
+ @Suppress(" PropertyName" )
36
38
val thumbnail_720_url : String
37
39
)
38
40
@@ -108,8 +110,4 @@ class DailymotionProvider : MainAPI() {
108
110
)
109
111
return true
110
112
}
111
-
112
- companion object {
113
- fun String.encodeUri (): String = URLEncoder .encode(this , " utf8" )
114
- }
115
113
}
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
3
3
4
4
cloudstream {
5
5
// 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.*
4
4
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
5
5
import com.lagradost.cloudstream3.utils.ExtractorLink
6
6
import com.lagradost.cloudstream3.utils.Qualities
7
+ import com.lagradost.cloudstream3.utils.StringUtils.encodeUri
7
8
import com.lagradost.cloudstream3.utils.loadExtractor
8
- import java.net.URLEncoder
9
9
10
10
class InvidiousProvider : MainAPI () { // all providers must be an instance of MainAPI
11
11
override var mainUrl = " https://iv.ggtyler.dev"
@@ -130,8 +130,4 @@ class InvidiousProvider : MainAPI() { // all providers must be an instance of Ma
130
130
)
131
131
return true
132
132
}
133
-
134
- companion object {
135
- fun String.encodeUri () = URLEncoder .encode(this , " utf8" )
136
- }
137
133
}
You can’t perform that action at this time.
0 commit comments