diff --git a/src/pt/opex/build.gradle b/src/pt/opex/build.gradle index ff6b5f601..71b467521 100644 --- a/src/pt/opex/build.gradle +++ b/src/pt/opex/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'One Piece Ex' pkgNameSuffix = 'pt.opex' extClass = '.OnePieceEx' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt b/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt index 376a4a8e7..0d41651a3 100644 --- a/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt +++ b/src/pt/opex/src/eu/kanade/tachiyomi/extension/pt/opex/OnePieceEx.kt @@ -193,11 +193,9 @@ class OnePieceEx : ParsedHttpSource() { override fun pageListParse(document: Document): List { return document.select("script:containsData(paginasLista)").first()!! .data() - .substringAfter("paginasLista = \"") - .substringBefore("\";") - .replace("\\\"", "\"") - .replace("\\\\\\/", "/") - .replace("//", "/") + .substringAfter("paginasLista = ") + .substringBefore(";") + .let { json.parseToJsonElement(it).jsonPrimitive.content } .let { json.parseToJsonElement(it).jsonObject.entries } .mapIndexed { i, entry -> Page(i, document.location(), "$baseUrl/${entry.value.jsonPrimitive.content}")