diff --git a/src/es/mangasnosekai/build.gradle b/src/es/mangasnosekai/build.gradle index b3537eacf..10e6dbf59 100644 --- a/src/es/mangasnosekai/build.gradle +++ b/src/es/mangasnosekai/build.gradle @@ -3,7 +3,11 @@ ext { extClass = '.MangasNoSekai' themePkg = 'madara' baseUrl = 'https://mangasnosekai.com' - overrideVersionCode = 13 + overrideVersionCode = 14 } apply from: "$rootDir/common.gradle" + +dependencies { + implementation(project(":lib:synchrony")) +} diff --git a/src/es/mangasnosekai/src/eu/kanade/tachiyomi/extension/es/mangasnosekai/MangasNoSekai.kt b/src/es/mangasnosekai/src/eu/kanade/tachiyomi/extension/es/mangasnosekai/MangasNoSekai.kt index 10fe649ed..348c1bd69 100644 --- a/src/es/mangasnosekai/src/eu/kanade/tachiyomi/extension/es/mangasnosekai/MangasNoSekai.kt +++ b/src/es/mangasnosekai/src/eu/kanade/tachiyomi/extension/es/mangasnosekai/MangasNoSekai.kt @@ -1,5 +1,6 @@ package eu.kanade.tachiyomi.extension.es.mangasnosekai +import eu.kanade.tachiyomi.lib.synchrony.Deobfuscator import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.POST @@ -203,7 +204,8 @@ class MangasNoSekai : Madara( val mangaSlug = response.request.url.toString().substringAfter(baseUrl).removeSuffix("/") val coreScript = document.selectFirst(values[0])!!.attr("abs:src") - val coreScriptBody = client.newCall(GET(coreScript, headers)).execute().body.string() + val coreScriptBody = Deobfuscator.deobfuscateScript(client.newCall(GET(coreScript, headers)).execute().body.string()) + ?: throw Exception("No se pudo deobfuscar el script") val url = values[5].toRegex().find(coreScriptBody)?.groupValues?.get(1) ?: throw Exception("No se pudo obtener la url del capĂ­tulo")