mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
fixes
This commit is contained in:
parent
dd9a4bd8e1
commit
1b39e3971c
1 changed files with 7 additions and 6 deletions
|
@ -103,17 +103,18 @@ class MundoDonghuaProvider : MainAPI() {
|
|||
"Finalizada" -> ShowStatus.Completed
|
||||
else -> null
|
||||
}
|
||||
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)
|
||||
}.addAll(doc2.selectFirst("sm-row bg-white pt-10 pr-20 pb-15 pl-20").selectFirst("row").select("item col-lg-2 col-md-2 col-xs-4").map {
|
||||
val specialEpisodes = doc2.selectFirst("sm-row bg-white pt-10 pr-20 pb-15 pl-20")?.selectFirst("row")?.select("item col-lg-2 col-md-2 col-xs-4").map {
|
||||
if (it.selectFirst("sf fc-dark f-bold")?.text().includes(title)) {
|
||||
val name = it.selectFirst("sf fc-dark f-bold")?.text()?.replace("Episodio","-")
|
||||
val link = it.attr("href")
|
||||
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)
|
||||
}.addAll(specialEpisodes).reversed()
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue