fixes kotlin syntax

This commit is contained in:
Clyzer 2022-12-12 12:58:26 -03:00
parent ad6f351cea
commit 1ecb0ee3ba

View file

@ -103,8 +103,8 @@ class MundoDonghuaProvider : MainAPI() {
"Finalizada" -> ShowStatus.Completed
else -> null
}
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().contains(title)) {
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()?.contains(title)) {
val name = it.selectFirst("sf fc-dark f-bold")?.text()?.replace("Episodio","-")
val link = it.attr("href")
Episode(fixUrl(link), name)