NullPointerException Fixed

This commit is contained in:
Clyzer 2022-12-12 14:16:58 -03:00
parent 518a02b8f0
commit 4be008c333

View file

@ -103,7 +103,7 @@ 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 {
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) ?: false) {
val name = it.selectFirst("sf fc-dark f-bold")?.text()?.replace("Episodio","-") ?: "fallo"
val link = it.attr("href")