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
}
val m3u8 = Regex("file:\\s*\"(.*?m3u8.*?)\"").find(script ?: return@apmap)?.groupValues?.getOrNull(1)
if(m3u8?.haveDub("$host/") == false) return@apmap
callback.invoke(
ExtractorLink(
"Moflix",

View file

@ -800,6 +800,10 @@ suspend fun getCrunchyrollIdFromMalSync(aniId: String?): String? {
?: 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(
title: String?,
date: String?,