Skip to content

Commit 45e8de3

Browse files
authored
Update InvidiousProvider.kt
1 parent 418963e commit 45e8de3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

InvidiousProvider/src/main/kotlin/recloudstream/InvidiousProvider.kt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ import com.lagradost.cloudstream3.newMovieLoadResponse
1616
import com.lagradost.cloudstream3.newMovieSearchResponse
1717
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
1818
import com.lagradost.cloudstream3.utils.ExtractorLink
19+
import com.lagradost.cloudstream3.utils.ExtractorLinkType
1920
import com.lagradost.cloudstream3.utils.Qualities
2021
import com.lagradost.cloudstream3.utils.StringUtils.encodeUri
2122
import com.lagradost.cloudstream3.utils.loadExtractor
23+
import com.lagradost.cloudstream3.utils.newExtractorLink
2224

2325
class 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+
}

0 commit comments

Comments
 (0)