Null bugs repair

This commit is contained in:
Clyzer 2022-12-12 15:38:01 -03:00
parent d9b7974dbe
commit 59a23b9ddd

View file

@ -107,8 +107,8 @@ class MundoDonghuaProvider : MainAPI() {
counter = counter + 1
if (counter < 7){
if (it.selectFirst("h5")?.text()?.lowercase()?.contains(title.lowercase()) ?: false) {
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-")
val link = it.selectFirst("a")?.attr("href")
val name = it.selectFirst("h5")?.text()?.replace("Episodio","-") ?: ""
val link = it.selectFirst("a")?.attr("href") ?: ""
Episode(fixUrl(link), name)
}
}