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
e2fabddc93
commit
fd0c5f4b42
1 changed files with 10 additions and 4 deletions
|
@ -103,7 +103,10 @@ class MundoDonghuaProvider : MainAPI() {
|
|||
"Finalizada" -> ShowStatus.Completed
|
||||
else -> null
|
||||
}
|
||||
var counter = 0
|
||||
val specialEpisodes = docSpecial.select(".col-xs-4").mapNotNull {
|
||||
counter++
|
||||
if (counter < 7) {
|
||||
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
|
||||
val link = it.selectFirst("a")?.attr("href") ?: ""
|
||||
if (name.contains(title, true)) {
|
||||
|
@ -111,6 +114,9 @@ class MundoDonghuaProvider : MainAPI() {
|
|||
} else {
|
||||
null
|
||||
}
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}.reversed()
|
||||
val episodes = doc.select("ul.donghua-list a").map {
|
||||
val name = it.selectFirst(".fs-16")?.text()
|
||||
|
|
Loading…
Reference in a new issue