Update MundoDonghuaProvider.kt

This commit is contained in:
Diego Sánchez 2022-12-12 16:36:08 -03:00 committed by GitHub
parent 315f5faeb0
commit 1d4cd6738c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -103,12 +103,14 @@ class MundoDonghuaProvider : MainAPI() {
else -> null
}
var counter = 0
val specialEpisodes = app.get(mainUrl, timeout = 120).document.select("div.row .col-xs-4").map {
val specialEpisodes = app.get("https://www.mundodonghua.com", timeout = 120).document.select("div.row .col-xs-4").map {
counter = counter + 1
if (counter < 7) {
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
val link = it.selectFirst("a")?.attr("href") ?: ""
Episode(fixUrl(link), name)
if (name.lowercase().contains(title.lowercase())) {
Episode(fixUrl(link), name)
}
}
}.reversed()
val episodes = doc.select("ul.donghua-list a").map {