From ab1881bd8f93cd2c2519ca0bf5c38f8630598677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20S=C3=A1nchez?= Date: Mon, 12 Dec 2022 16:22:54 -0300 Subject: [PATCH] Debugging --- .../src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt index 4ef0b94..d49cbfc 100644 --- a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt +++ b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt @@ -108,17 +108,15 @@ class MundoDonghuaProvider : MainAPI() { 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) - } + Episode(fixUrl(link), name) } - } + }.reversed() val episodes = doc.select("ul.donghua-list a").map { val name = it.selectFirst(".fs-16")?.text() val link = it.attr("href") Episode(fixUrl(link), name) }.reversed() - val episodesFinal = specialEpisodes + episodes + val episodesFinal = episodes + specialEpisodes val typeinfo = doc.select("div.row div.col-md-6.pl-15 p.fc-dark").text() val tvType = if (typeinfo.contains(Regex("Tipo.*Pel.cula"))) TvType.AnimeMovie else TvType.Anime return newAnimeLoadResponse(title, url, tvType) {