mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed DramaidProvider sources
This commit is contained in:
parent
8c45ad7a6a
commit
1529508d06
2 changed files with 14 additions and 1 deletions
|
@ -2,6 +2,7 @@ package com.hexated
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
|
import com.lagradost.cloudstream3.extractors.XStreamCdn
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
import com.lagradost.cloudstream3.utils.getQualityFromName
|
import com.lagradost.cloudstream3.utils.getQualityFromName
|
||||||
|
@ -202,7 +203,12 @@ class DramaidProvider : MainAPI() {
|
||||||
it.replace("https://ndrama.xyz", "https://www.fembed.com")
|
it.replace("https://ndrama.xyz", "https://www.fembed.com")
|
||||||
}.apmap {
|
}.apmap {
|
||||||
when {
|
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)
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,6 @@ class DramaidProviderPlugin: Plugin() {
|
||||||
override fun load(context: Context) {
|
override fun load(context: Context) {
|
||||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||||
registerMainAPI(DramaidProvider())
|
registerMainAPI(DramaidProvider())
|
||||||
|
registerExtractorAPI(Vanfem())
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue