From e978acc46a99ad51787df1859b2cc59442cacb35 Mon Sep 17 00:00:00 2001 From: Zaw <42999156+ImZaw@users.noreply.github.com> Date: Fri, 2 Dec 2022 14:58:36 +0300 Subject: [PATCH] Update Anime4upProvider.kt --- Anime4upPack/src/main/kotlin/com/anime4up/Anime4upProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Anime4upPack/src/main/kotlin/com/anime4up/Anime4upProvider.kt b/Anime4upPack/src/main/kotlin/com/anime4up/Anime4upProvider.kt index 634ca01..1275417 100644 --- a/Anime4upPack/src/main/kotlin/com/anime4up/Anime4upProvider.kt +++ b/Anime4upPack/src/main/kotlin/com/anime4up/Anime4upProvider.kt @@ -138,8 +138,8 @@ open class Anime4up : MainAPI() { loadExtractor(it.value, data, subtitleCallback, callback) } } - val moshahdaID = doc.select("input[name=\"moshahda\"]").attr("value").decodeBase64()?.utf8() - if(moshahdaID?.isNotEmpty()) { + val moshahdaID = doc.select("input[name=\"moshahda\"]").attr("value").decodeBase64()?.utf8() ?: "" + if(moshahdaID.isNotEmpty()) { mapOf( "Original" to "download_o", "720" to "download_x",