sora: fixed kimcartoon

This commit is contained in:
hexated 2023-03-26 13:50:45 +07:00
parent 21b84552bd
commit c7da0fd1ab
1 changed files with 10 additions and 6 deletions

View File

@ -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(