Debugging

This commit is contained in:
Diego Sánchez 2022-12-12 16:22:54 -03:00 committed by GitHub
parent f0a1d04b1e
commit ab1881bd8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,17 +108,15 @@ class MundoDonghuaProvider : MainAPI() {
if (counter < 7) {
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
val link = it.selectFirst("a")?.attr("href") ?: ""
if (name.lowercase().contains(title.lowercase())) {
Episode(fixUrl(link), name)
}
}
}
}.reversed()
val episodes = doc.select("ul.donghua-list a").map {
val name = it.selectFirst(".fs-16")?.text()
val link = it.attr("href")
Episode(fixUrl(link), name)
}.reversed()
val episodesFinal = specialEpisodes + episodes
val episodesFinal = episodes + specialEpisodes
val typeinfo = doc.select("div.row div.col-md-6.pl-15 p.fc-dark").text()
val tvType = if (typeinfo.contains(Regex("Tipo.*Pel.cula"))) TvType.AnimeMovie else TvType.Anime
return newAnimeLoadResponse(title, url, tvType) {