No Available Video Bug fix (Donghuastream/Luciferdonghua) (#439)

* No Avilable Video Bug fix

* Additional Changes

* Additional Changes

---------

Co-authored-by: Yogesh S <yogesh.sakthivel@thoughtscrest.com>
This commit is contained in:
Yogesh S
2026-06-11 18:42:22 +05:30
committed by GitHub
parent be230bbac9
commit b4ba6aaeac
3 changed files with 6 additions and 2 deletions

View File

@@ -4,4 +4,4 @@ plugins {
alias(kei.plugins.multisrc)
}
baseVersionCode = 5
baseVersionCode = 6

View File

@@ -348,6 +348,8 @@ abstract class AnimeStream(
return getHosterUrl(encodedData)
}
protected open fun getEpisodeIframeSelector() = "iframe[src~=.]"
// Taken from LuciferDonghua
protected open suspend fun getHosterUrl(encodedData: String): String {
val doc = if (encodedData.toHttpUrlOrNull() == null) {
@@ -357,7 +359,7 @@ abstract class AnimeStream(
client.newCall(GET(encodedData, headers)).awaitSuccess().useAsJsoup()
}
return doc.selectFirst("#embed_holder iframe[src~=.]")?.safeUrl()
return doc.selectFirst(getEpisodeIframeSelector())?.safeUrl()
?: doc.selectFirst("meta[content~=.][itemprop=embedUrl]")!!.safeUrl("content")
}

View File

@@ -76,6 +76,8 @@ class LuciferDonghua :
return episodeList
}
override fun getEpisodeIframeSelector() = "#embed_holder iframe[src~=.]"
// ============================ Video Links =============================
private val okruExtractor by lazy { OkruExtractor(client) }
private val dailymotionExtractor by lazy { DailymotionExtractor(client, headers) }