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())