This commit is contained in:
alex 2024-01-21 20:08:22 +07:00
parent 918f5bd5d2
commit 23c51e191f
2 changed files with 5 additions and 0 deletions

View file

@ -1852,6 +1852,7 @@ object SoraExtractor : SoraStream() {
doc doc
} }
val m3u8 = Regex("file:\\s*\"(.*?m3u8.*?)\"").find(script ?: return@apmap)?.groupValues?.getOrNull(1) val m3u8 = Regex("file:\\s*\"(.*?m3u8.*?)\"").find(script ?: return@apmap)?.groupValues?.getOrNull(1)
if(m3u8?.haveDub("$host/") == false) return@apmap
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
"Moflix", "Moflix",

View file

@ -800,6 +800,10 @@ suspend fun getCrunchyrollIdFromMalSync(aniId: String?): String? {
?: regex.find("$crunchyroll")?.groupValues?.getOrNull(1) ?: regex.find("$crunchyroll")?.groupValues?.getOrNull(1)
} }
suspend fun String.haveDub(referer: String) : Boolean {
return app.get(this,referer=referer).text.contains("TYPE=AUDIO")
}
suspend fun convertTmdbToAnimeId( suspend fun convertTmdbToAnimeId(
title: String?, title: String?,
date: String?, date: String?,