mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fixed kimcartoon
This commit is contained in:
parent
21b84552bd
commit
c7da0fd1ab
1 changed files with 10 additions and 6 deletions
|
@ -632,12 +632,16 @@ object SoraExtractor : SoraStream() {
|
||||||
it.attr("href").contains(Regex("(?i)Episode-0*$episode"))
|
it.attr("href").contains(Regex("(?i)Episode-0*$episode"))
|
||||||
}?.attr("href")
|
}?.attr("href")
|
||||||
} ?: return
|
} ?: return
|
||||||
val source =
|
val servers = app.get(fixUrl(iframe, kimcartoonAPI)).document.select("#selectServer > option").map { fixUrl(it.attr("value"), kimcartoonAPI) }
|
||||||
app.get(
|
|
||||||
fixUrl(iframe, kimcartoonAPI)
|
servers.apmap {
|
||||||
).document.selectFirst("div#divContentVideo iframe")
|
app.get(it).document.select("#my_video_1").attr("src").let { iframe ->
|
||||||
?.attr("src") ?: return
|
if (iframe.isNotEmpty()) {
|
||||||
loadExtractor(source, "$kimcartoonAPI/", subtitleCallback, callback)
|
loadExtractor(iframe, "$kimcartoonAPI/", subtitleCallback, callback)
|
||||||
|
}
|
||||||
|
//There are other servers, but they require some work to do
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun invokeSoraStream(
|
suspend fun invokeSoraStream(
|
||||||
|
|
Loading…
Reference in a new issue