From 59b824789eb681c3384053d82c05ba9e77fd5de6 Mon Sep 17 00:00:00 2001 From: Clyzer Date: Thu, 19 Jan 2023 11:32:41 -0300 Subject: [PATCH] ready --- .../src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt index 6682a55..ca1c614 100644 --- a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt +++ b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt @@ -22,7 +22,7 @@ class MundoDonghuaProvider : MainAPI() { override val supportedTypes = setOf( TvType.Anime, ) - private var docSpecial = app.get(mainUrl, timeout = 120).document.map + private val docSpecial override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse { val urls = listOf( @@ -41,6 +41,7 @@ class MundoDonghuaProvider : MainAPI() { val epNumRemoveRegex = Regex("/" + epNum.toString() + "/.*") val url = it.selectFirst("a")?.attr("href")?.replace(epRegex,"")?.replace("/ver/","/donghua/")?.replace(epNumRemoveRegex,"") val dubstat = if (title.contains("Latino") || title.contains("Castellano")) DubStatus.Dubbed else DubStatus.Subbed + val docSpecial = app.get(mainUrl, timeout = 120).document newAnimeSearchResponse(title.replace(Regex("Episodio|(\\d+)"),"").trim(), fixUrl(url ?: "")) { this.posterUrl = fixUrl(poster ?: "") addDubStatus(dubstat, epNum)