mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Repair condition of counter special Episodes
This commit is contained in:
parent
59a23b9ddd
commit
7554de506a
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
val specialEpisodes = app.get(mainUrl, timeout = 120).document.select(".col-xs-4").map {
|
val specialEpisodes = app.get(mainUrl, timeout = 120).document.select(".col-xs-4").map {
|
||||||
counter = counter + 1
|
counter = counter + 1
|
||||||
if (counter < 7){
|
if (counter < 7){
|
||||||
if (it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) ?: false) {
|
if (it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) != null && it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase())) {
|
||||||
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
|
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
|
||||||
val link = it.selectFirst("a")?.attr("href") ?: ""
|
val link = it.selectFirst("a")?.attr("href") ?: ""
|
||||||
Episode(fixUrl(link), name)
|
Episode(fixUrl(link), name)
|
||||||
|
|
Loading…
Reference in a new issue