From 24561911822b2cf076dcbf50b4cb8bc72afe4aee Mon Sep 17 00:00:00 2001 From: KingLucius Date: Sat, 8 Jul 2023 22:52:49 +0300 Subject: [PATCH] Old API support for YTV --- .../src/main/kotlin/com/yacienttv/YacienTVProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YacienTVProvider/src/main/kotlin/com/yacienttv/YacienTVProvider.kt b/YacienTVProvider/src/main/kotlin/com/yacienttv/YacienTVProvider.kt index 18168311..7a81c7b6 100644 --- a/YacienTVProvider/src/main/kotlin/com/yacienttv/YacienTVProvider.kt +++ b/YacienTVProvider/src/main/kotlin/com/yacienttv/YacienTVProvider.kt @@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor import com.lagradost.cloudstream3.network.CloudflareKiller import org.jsoup.nodes.Element import android.util.Log -import java.util.Base64 +import android.util.Base64 import com.lagradost.cloudstream3.utils.AppUtils.parseJson import com.lagradost.cloudstream3.utils.AppUtils.toJson import com.lagradost.cloudstream3.utils.Qualities @@ -29,7 +29,7 @@ class YacienTV : MainAPI() { fun decrypt(enc: String, headerstr: String): String { var key = mainkey + headerstr - val decodedBytes = Base64.getDecoder().decode(enc.toByteArray()) + val decodedBytes = Base64.decode(enc, Base64.DEFAULT) val encString = String(decodedBytes) var result = "" for (i in encString.indices) {