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
f50af8b6f4
commit
78d044bf87
1 changed files with 4 additions and 6 deletions
|
@ -103,14 +103,12 @@ class MundoDonghuaProvider : MainAPI() {
|
|||
else -> null
|
||||
}
|
||||
var counter = 0
|
||||
var condition = false
|
||||
val specialEpisodes = app.get(mainUrl, timeout = 120).document.select(".col-xs-4").map {
|
||||
counter = counter + 1
|
||||
if (counter < 7){
|
||||
condition = it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) ?: false
|
||||
if (condition != null && condition == true) {
|
||||
if (counter < 7)
|
||||
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
|
||||
val link = it.selectFirst("a")?.attr("href") ?: ""
|
||||
if (name.lowercase().contains(title.lowercase())) {
|
||||
Episode(fixUrl(link), name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue