fix(pt/AnimesfoxBR): Fix video extractor (#1626)
* fix: Fix video extraction * chore: Bump version
This commit is contained in:
parent
7b15981991
commit
3b11e5ad43
@ -84,9 +84,20 @@ class AnimesFoxBR : DooPlay(
|
||||
.substringAfter("\"embed_url\":\"")
|
||||
.substringBefore("\",")
|
||||
.replace("\\", "")
|
||||
.substringAfter("token=")
|
||||
.substringBefore("' ")
|
||||
.let { Base64.decode(it, Base64.DEFAULT).let(::String) }
|
||||
.let { url ->
|
||||
when {
|
||||
url.contains("token=") -> {
|
||||
url.substringAfter("token=")
|
||||
.substringBefore("' ")
|
||||
.let { Base64.decode(it, Base64.DEFAULT) }
|
||||
.let(::String)
|
||||
}
|
||||
url.contains("iframe") -> {
|
||||
url.substringAfter("?link=").substringBefore("'")
|
||||
}
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ class DooPlayGenerator : ThemeSourceGenerator {
|
||||
override val sources = listOf(
|
||||
SingleLang("Animes House", "https://animeshouse.net", "pt-BR", isNsfw = false, overrideVersionCode = 4),
|
||||
SingleLang("AnimeOnline.Ninja", "https://www1.animeonline.ninja", "es", className = "AnimeOnlineNinja", isNsfw = false, overrideVersionCode = 26),
|
||||
SingleLang("AnimesFox BR", "https://animesfoxbr.com", "pt-BR", isNsfw = false),
|
||||
SingleLang("AnimesFox BR", "https://animesfoxbr.com", "pt-BR", isNsfw = false, overrideVersionCode = 1),
|
||||
SingleLang("AnimePlayer", "https://animeplayer.com.br", "pt-BR", isNsfw = true),
|
||||
SingleLang("Cinemathek", "https://cinemathek.net", "de", isNsfw = true, overrideVersionCode = 11),
|
||||
SingleLang("CineVision", "https://cinevisionv3.online", "pt-BR", isNsfw = true, overrideVersionCode = 5),
|
||||
|
Loading…
x
Reference in New Issue
Block a user