Update MundoDonghuaProvider.kt

This commit is contained in:
Diego Sánchez 2022-12-12 15:56:35 -03:00 committed by GitHub
parent 242722d1b4
commit f50af8b6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ class MundoDonghuaProvider : MainAPI() {
val specialEpisodes = app.get(mainUrl, timeout = 120).document.select(".col-xs-4").map { val specialEpisodes = app.get(mainUrl, timeout = 120).document.select(".col-xs-4").map {
counter = counter + 1 counter = counter + 1
if (counter < 7){ if (counter < 7){
condition = it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) condition = it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) ?: false
if (condition != null && condition == true) { if (condition != null && condition == true) {
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") ?: ""