mirror of
https://github.com/yuzono/anime-extensions.git
synced 2026-06-13 05:29:44 +00:00
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:
@@ -4,4 +4,4 @@ plugins {
|
||||
alias(kei.plugins.multisrc)
|
||||
}
|
||||
|
||||
baseVersionCode = 5
|
||||
baseVersionCode = 6
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user