From 57aa94dd12a2e4a03f1f50b56418264e3b1c7676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20S=C3=A1nchez?= Date: Tue, 13 Dec 2022 09:53:42 -0300 Subject: [PATCH] Improvements --- .../src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt index 2eb3e06..afe3d3b 100644 --- a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt +++ b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt @@ -93,7 +93,7 @@ class MundoDonghuaProvider : MainAPI() { override suspend fun load(url: String): LoadResponse { val doc = app.get(url, timeout = 120).document - val docSpecial = app.get("https://www.mundodonghua.com", timeout = 120).document + val docSpecial = app.get(mainUrl, timeout = 120).document val poster = doc.selectFirst("head meta[property=og:image]")?.attr("content") ?: "" val title = doc.selectFirst(".ls-title-serie")?.text() ?: "" val description = doc.selectFirst("p.text-justify.fc-dark")?.text() ?: "" @@ -122,7 +122,7 @@ class MundoDonghuaProvider : MainAPI() { val tvType = if (typeinfo.contains(Regex("Tipo.*Pel.cula"))) TvType.AnimeMovie else TvType.Anime return newAnimeLoadResponse(title, url, tvType) { posterUrl = poster - addEpisodes(DubStatus.Subbed, episodesFinal.filterNotNull().filterIsInstance()) + addEpisodes(DubStatus.Subbed, episodesFinal) showStatus = status plot = description tags = genres