From 9aecf7e174dc83432222f300e7c65dfa77fd8cdb Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Mon, 15 Apr 2024 05:48:38 -0500 Subject: [PATCH] MangaOni: Fix bad base64 (#2439) fix bad base64 --- src/es/mangamx/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/es/mangamx/build.gradle b/src/es/mangamx/build.gradle index 439fba0f6..84911e0d4 100644 --- a/src/es/mangamx/build.gradle +++ b/src/es/mangamx/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'MangaOni' extClass = '.MangaOni' - extVersionCode = 15 + extVersionCode = 16 isNsfw = true } diff --git a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt index e6d5971b4..9cc8ffd18 100644 --- a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt +++ b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt @@ -188,7 +188,7 @@ open class MangaOni : ConfigurableSource, ParsedHttpSource() { override fun pageListParse(document: Document): List { val encoded = document.select("script:containsData(unicap)").firstOrNull() - ?.data()?.substringAfter("'")?.substringBefore("'")?.reversed() + ?.data()?.substringAfter("'")?.substringBefore("'") ?: throw Exception("unicap not found") val drop = encoded.length % 4 val decoded = Base64.decode(encoded.dropLast(drop), Base64.DEFAULT).toString(Charset.defaultCharset())