fixed DramaidProvider sources

This commit is contained in:
hexated 2022-11-02 06:44:15 +07:00
parent 8c45ad7a6a
commit 1529508d06
2 changed files with 14 additions and 1 deletions

View file

@ -2,6 +2,7 @@ package com.hexated
import com.fasterxml.jackson.annotation.JsonProperty
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.extractors.XStreamCdn
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.getQualityFromName
@ -202,7 +203,12 @@ class DramaidProvider : MainAPI() {
it.replace("https://ndrama.xyz", "https://www.fembed.com")
}.apmap {
when {
it.contains("motonews.club") -> invokeDriveSource(it, this.name, subtitleCallback, callback)
it.contains("motonews.club") -> invokeDriveSource(
it,
this.name,
subtitleCallback,
callback
)
else -> loadExtractor(it, data, subtitleCallback, callback)
}
}
@ -211,3 +217,9 @@ class DramaidProvider : MainAPI() {
}
}
class Vanfem : XStreamCdn() {
override val name: String = "Vanfem"
override val mainUrl: String = "https://vanfem.com"
}

View file

@ -10,5 +10,6 @@ class DramaidProviderPlugin: Plugin() {
override fun load(context: Context) {
// All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(DramaidProvider())
registerExtractorAPI(Vanfem())
}
}