mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Debugging
This commit is contained in:
parent
f0a1d04b1e
commit
ab1881bd8f
1 changed files with 3 additions and 5 deletions
|
@ -108,17 +108,15 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
if (counter < 7) {
|
if (counter < 7) {
|
||||||
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.lowercase().contains(title.lowercase())) {
|
Episode(fixUrl(link), name)
|
||||||
Episode(fixUrl(link), name)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}.reversed()
|
||||||
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")
|
||||||
Episode(fixUrl(link), name)
|
Episode(fixUrl(link), name)
|
||||||
}.reversed()
|
}.reversed()
|
||||||
val episodesFinal = specialEpisodes + episodes
|
val episodesFinal = episodes + specialEpisodes
|
||||||
val typeinfo = doc.select("div.row div.col-md-6.pl-15 p.fc-dark").text()
|
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
|
val tvType = if (typeinfo.contains(Regex("Tipo.*Pel.cula"))) TvType.AnimeMovie else TvType.Anime
|
||||||
return newAnimeLoadResponse(title, url, tvType) {
|
return newAnimeLoadResponse(title, url, tvType) {
|
||||||
|
|
Loading…
Reference in a new issue