fix(pt/animeplayer): Fix problems with cloudflare (#1969)
Co-authored-by: jmir1 <jhmiramon@gmail.com>
This commit is contained in:
@ -12,6 +12,8 @@ class AnimePlayer : DooPlay(
|
||||
"AnimePlayer",
|
||||
"https://animeplayer.com.br",
|
||||
) {
|
||||
override val client = network.cloudflareClient
|
||||
|
||||
// ============================== Popular ===============================
|
||||
override fun popularAnimeSelector() = "div#featured-titles article div.poster"
|
||||
|
||||
|
@ -13,14 +13,14 @@ class BloggerExtractor(private val client: OkHttpClient) {
|
||||
.substringBefore("]")
|
||||
.split("},")
|
||||
.map {
|
||||
val url = it.substringAfter("{\"play_url\":\"").substringBefore('"')
|
||||
val videoUrl = it.substringAfter("{\"play_url\":\"").substringBefore('"')
|
||||
val format = it.substringAfter("\"format_id\":").substringBefore("}")
|
||||
val quality = when (format) {
|
||||
"18" -> "360p"
|
||||
"22" -> "720p"
|
||||
else -> "Unknown"
|
||||
}
|
||||
Video(url, quality, url, headers = headers)
|
||||
Video(videoUrl, quality, videoUrl, headers = headers)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ class DooPlayGenerator : ThemeSourceGenerator {
|
||||
override val sources = listOf(
|
||||
SingleLang("AnimeOnline360", "https://animeonline360.me", "en", isNsfw = false),
|
||||
SingleLang("AnimeOnline.Ninja", "https://www1.animeonline.ninja", "es", className = "AnimeOnlineNinja", isNsfw = false, overrideVersionCode = 28),
|
||||
SingleLang("AnimePlayer", "https://animeplayer.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("AnimePlayer", "https://animeplayer.com.br", "pt-BR", isNsfw = true),
|
||||
SingleLang("AnimeSync", "https://animesync.org", "pt-BR", isNsfw = true),
|
||||
SingleLang("AnimesFox BR", "https://animesfox.net", "pt-BR", isNsfw = false, overrideVersionCode = 2),
|
||||
|
Reference in New Issue
Block a user