From 59a23b9ddd08f9f5da9b06cbbd06faa0e1f2f94d Mon Sep 17 00:00:00 2001 From: Clyzer Date: Mon, 12 Dec 2022 15:38:01 -0300 Subject: [PATCH] Null bugs repair --- .../src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt index 0f8f7b5..c8d1cec 100644 --- a/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt +++ b/MundoDonghuaProvider/src/main/kotlin/com/lagradost/MundoDonghuaProvider.kt @@ -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) } }