From 8909aec921b5a520cb63bbb331f520670e6eb1cd Mon Sep 17 00:00:00 2001 From: Clyzer Date: Mon, 12 Dec 2022 15:46:40 -0300 Subject: [PATCH] Compex Expression error fixed --- .../src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt index f75a188..0dbc708 100644 --- a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt +++ b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt @@ -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)