mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Compex Expression error fixed
This commit is contained in:
parent
7554de506a
commit
8909aec921
1 changed files with 3 additions and 1 deletions
|
@ -103,10 +103,12 @@ class MundoDonghuaProvider : MainAPI() {
|
|||
else -> null
|
||||
}
|
||||
var counter = 0
|
||||
var condition = ""
|
||||
val specialEpisodes = app.get(mainUrl, timeout = 120).document.select(".col-xs-4").map {
|
||||
counter = counter + 1
|
||||
if (counter < 7){
|
||||
if (it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) != null && it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase())) {
|
||||
condition = it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase())
|
||||
if (condition != null && condition == true) {
|
||||
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
|
||||
val link = it.selectFirst("a")?.attr("href") ?: ""
|
||||
Episode(fixUrl(link), name)
|
||||
|
|
Loading…
Reference in a new issue