mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
ready
This commit is contained in:
parent
448dbf198b
commit
59b824789e
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
override val supportedTypes = setOf(
|
override val supportedTypes = setOf(
|
||||||
TvType.Anime,
|
TvType.Anime,
|
||||||
)
|
)
|
||||||
private var docSpecial = app.get(mainUrl, timeout = 120).document.map
|
private val docSpecial
|
||||||
|
|
||||||
override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse {
|
override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse {
|
||||||
val urls = listOf(
|
val urls = listOf(
|
||||||
|
@ -41,6 +41,7 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
val epNumRemoveRegex = Regex("/" + epNum.toString() + "/.*")
|
val epNumRemoveRegex = Regex("/" + epNum.toString() + "/.*")
|
||||||
val url = it.selectFirst("a")?.attr("href")?.replace(epRegex,"")?.replace("/ver/","/donghua/")?.replace(epNumRemoveRegex,"")
|
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 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 ?: "")) {
|
newAnimeSearchResponse(title.replace(Regex("Episodio|(\\d+)"),"").trim(), fixUrl(url ?: "")) {
|
||||||
this.posterUrl = fixUrl(poster ?: "")
|
this.posterUrl = fixUrl(poster ?: "")
|
||||||
addDubStatus(dubstat, epNum)
|
addDubStatus(dubstat, epNum)
|
||||||
|
|
Loading…
Reference in a new issue