mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Update MundoDonghuaProvider.kt
This commit is contained in:
parent
315f5faeb0
commit
1d4cd6738c
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue