File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
InvidiousProvider/src/main/kotlin/recloudstream Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ import com.lagradost.cloudstream3.newMovieLoadResponse
1616import com.lagradost.cloudstream3.newMovieSearchResponse
1717import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
1818import com.lagradost.cloudstream3.utils.ExtractorLink
19+ import com.lagradost.cloudstream3.utils.ExtractorLinkType
1920import com.lagradost.cloudstream3.utils.Qualities
2021import com.lagradost.cloudstream3.utils.StringUtils.encodeUri
2122import com.lagradost.cloudstream3.utils.loadExtractor
23+ import com.lagradost.cloudstream3.utils.newExtractorLink
2224
2325class InvidiousProvider : MainAPI () { // all providers must be an instance of MainAPI
2426 override var mainUrl = " https://iv.ggtyler.dev"
@@ -129,18 +131,12 @@ class InvidiousProvider : MainAPI() { // all providers must be an instance of Ma
129131 callback
130132 )
131133 callback(
132- ExtractorLink (
133- " Invidious" ,
134- " Invidious" ,
135- " $mainUrl /api/manifest/dash/id/$data " ,
136- " " ,
137- Qualities .Unknown .value,
138- false ,
139- mapOf (),
140- null ,
141- true
142- )
134+ newExtractorLink(this .name, this .name, " $mainUrl /api/manifest/dash/id/$data " ) {
135+ quality = Qualities .Unknown .value
136+ type = ExtractorLinkType .DASH
137+ referer = " "
138+ }
143139 )
144140 return true
145141 }
146- }
142+ }
You can’t perform that action at this time.
0 commit comments