mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Update MundoDonghuaProvider.kt
This commit is contained in:
parent
3575073ee2
commit
14b5bdb26d
1 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun load(url: String): LoadResponse {
|
override suspend fun load(url: String): LoadResponse {
|
||||||
val doc = app.get(url, timeout = 120).document.selectFirst("div.row")
|
val doc = app.get(url, timeout = 120).document
|
||||||
val docSpecial = app.get("https://www.mundodonghua.com", timeout = 120).document
|
val docSpecial = app.get("https://www.mundodonghua.com", timeout = 120).document
|
||||||
val poster = doc.selectFirst("head meta[property=og:image]")?.attr("content") ?: ""
|
val poster = doc.selectFirst("head meta[property=og:image]")?.attr("content") ?: ""
|
||||||
val title = doc.selectFirst(".ls-title-serie")?.text() ?: ""
|
val title = doc.selectFirst(".ls-title-serie")?.text() ?: ""
|
||||||
|
@ -103,7 +103,7 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
"Finalizada" -> ShowStatus.Completed
|
"Finalizada" -> ShowStatus.Completed
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
val specialEpisodes = docSpecial.select(".col-xs-4").mapNotNull {
|
val specialEpisodes = docSpecial.selectFirst("div.row")?.select(".col-xs-4").mapNotNull {
|
||||||
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") ?: ""
|
||||||
if (name.contains(title, true)) {
|
if (name.contains(title, true)) {
|
||||||
|
@ -111,7 +111,7 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}.reversed()
|
}?.reversed() ?: emptyMap()
|
||||||
val episodes = doc.select("ul.donghua-list a").map {
|
val episodes = doc.select("ul.donghua-list a").map {
|
||||||
val name = it.selectFirst(".fs-16")?.text()
|
val name = it.selectFirst(".fs-16")?.text()
|
||||||
val link = it.attr("href")
|
val link = it.attr("href")
|
||||||
|
|
Loading…
Reference in a new issue