mirror of
https://github.com/recloudstream/cloudstream-extensions.git
synced 2024-08-15 03:03:54 +00:00
Fixed almost all providers
This commit is contained in:
parent
5c5a8d142f
commit
51101ae3b3
30 changed files with 565 additions and 52 deletions
|
@ -2,11 +2,12 @@ package com.lagradost
|
|||
|
||||
import com.lagradost.cloudstream3.SubtitleFile
|
||||
import com.lagradost.cloudstream3.TvType
|
||||
import com.lagradost.cloudstream3.extractors.VidSrcExtractor
|
||||
//import com.lagradost.cloudstream3.extractors.VidSrcExtractor
|
||||
import com.lagradost.cloudstream3.metaproviders.TmdbLink
|
||||
import com.lagradost.cloudstream3.metaproviders.TmdbProvider
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
|
||||
class VidSrcProvider : TmdbProvider() {
|
||||
override val apiName = "VidSrc"
|
||||
|
@ -19,9 +20,9 @@ class VidSrcProvider : TmdbProvider() {
|
|||
TvType.TvSeries,
|
||||
)
|
||||
|
||||
companion object {
|
||||
val extractor = VidSrcExtractor()
|
||||
}
|
||||
// companion object {
|
||||
// val extractor = VidSrcExtractor()
|
||||
// }
|
||||
|
||||
override suspend fun loadLinks(
|
||||
data: String,
|
||||
|
@ -44,7 +45,8 @@ class VidSrcProvider : TmdbProvider() {
|
|||
"$mainUrl/embed/$suffix"
|
||||
}
|
||||
|
||||
extractor.getSafeUrl(embedUrl, null, subtitleCallback, callback)
|
||||
loadExtractor(embedUrl, null, subtitleCallback, callback)
|
||||
// extractor.getSafeUrl(embedUrl, null, subtitleCallback, callback)
|
||||
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue