Update MundoDonghuaProvider.kt

This commit is contained in:
Diego Sánchez 2022-12-12 22:58:01 -03:00 committed by GitHub
parent c9c86085e6
commit 38ac4af7cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,11 +103,13 @@ class MundoDonghuaProvider : MainAPI() {
"Finalizada" -> ShowStatus.Completed "Finalizada" -> ShowStatus.Completed
else -> null else -> null
} }
val specialEpisodes = docSpecial.select("div.row .col-xs-4").map { val specialEpisodes = docSpecial.select(".col-xs-4").map {
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: "" val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
val link = it.selectFirst("a")?.attr("href") ?: "" val link = it.selectFirst("a")?.attr("href") ?: ""
if (name.contains(title, true)) { if (name.contains(title, true)) {
Episode(fixUrl(link), name) Episode(fixUrl(link), name)
} else {
Episode(fixUrl(link), "Testing")
} }
}.reversed() }.reversed()
val episodes = doc.select("ul.donghua-list a").map { val episodes = doc.select("ul.donghua-list a").map {