mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Otakudesu
This commit is contained in:
parent
3cc5bdb460
commit
7da4d9b5e6
3 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 7
|
version = 8
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId
|
||||||
|
import com.lagradost.cloudstream3.extractors.JWPlayer
|
||||||
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.loadExtractor
|
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
|
@ -12,7 +13,7 @@ import org.jsoup.nodes.Element
|
||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
|
|
||||||
class OtakudesuProvider : MainAPI() {
|
class OtakudesuProvider : MainAPI() {
|
||||||
override var mainUrl = "https://otakudesu.bid"
|
override var mainUrl = "https://otakudesu.is"
|
||||||
override var name = "Otakudesu"
|
override var name = "Otakudesu"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "id"
|
override var lang = "id"
|
||||||
|
@ -206,10 +207,7 @@ class OtakudesuProvider : MainAPI() {
|
||||||
).select("iframe").attr("src")
|
).select("iframe").attr("src")
|
||||||
|
|
||||||
if (sources.startsWith("https://desustream.me")) {
|
if (sources.startsWith("https://desustream.me")) {
|
||||||
if (!sources.contains("/arcg/") && !sources.contains("/odchan/") && !sources.contains(
|
if (!sources.contains(Regex("/arcg/|/odchan/|/desudrive/|/moedesu/"))) {
|
||||||
"/desudrive/"
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
sources = app.get(sources).document.select("iframe").attr("src")
|
sources = app.get(sources).document.select("iframe").attr("src")
|
||||||
}
|
}
|
||||||
if (sources.startsWith("https://yourupload.com")) {
|
if (sources.startsWith("https://yourupload.com")) {
|
||||||
|
@ -261,4 +259,9 @@ class OtakudesuProvider : MainAPI() {
|
||||||
@JsonProperty("results") val results: ArrayList<Results>? = arrayListOf(),
|
@JsonProperty("results") val results: ArrayList<Results>? = arrayListOf(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class Moedesu : JWPlayer() {
|
||||||
|
override val name = "Moedesu"
|
||||||
|
override val mainUrl = "https://desustream.me/moedesu/"
|
||||||
}
|
}
|
|
@ -10,5 +10,6 @@ class OtakudesuProviderPlugin: 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(OtakudesuProvider())
|
registerMainAPI(OtakudesuProvider())
|
||||||
|
registerExtractorAPI(Moedesu())
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue