Addition of special chapters to the chapters list

This commit is contained in:
Diego Sánchez 2022-12-13 00:28:45 -03:00 committed by GitHub
parent 854acaac71
commit f854c21b89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ class MundoDonghuaProvider : MainAPI() {
"Finalizada" -> ShowStatus.Completed "Finalizada" -> ShowStatus.Completed
else -> null else -> null
} }
val specialEpisodes = docSpecial.selectFirst("div.row")?.select(".col-xs-4")?.mapNotNull { val specialEpisodes = docSpecial.selectFirst(".sm-row.bg-white.pt-10.pr-20.pb-15.pl-20")?.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)) {