Update MundoDonghuaProvider.kt

This commit is contained in:
Diego Sánchez 2022-12-12 23:10:58 -03:00 committed by GitHub
parent 38ac4af7cb
commit cee31ebcce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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