From f27da3e9cb66ee894aa0f7af3e18456dc8357099 Mon Sep 17 00:00:00 2001 From: Rublood Date: Mon, 17 Jun 2019 22:38:21 +0200 Subject: [PATCH] Update scrambled images on webtoon (#1209) Update scrambled images on webtoon --- src/fr/japscan/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/japscan/build.gradle b/src/fr/japscan/build.gradle index 785e85a0b..bcd094499 100644 --- a/src/fr/japscan/build.gradle +++ b/src/fr/japscan/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Japscan' pkgNameSuffix = 'fr.japscan' extClass = '.Japscan' - extVersionCode = 10 + extVersionCode = 11 libVersion = '1.2' } diff --git a/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt b/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt index 17b5aa039..24271700c 100644 --- a/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt +++ b/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt @@ -187,7 +187,7 @@ class Japscan : ParsedHttpSource() { override fun pageListParse(document: Document): List { val pages = mutableListOf() val imagePath = "(.*\\/).*".toRegex().find(document.select("#image").attr("data-src")) - val imageScrambled = if (!document.select("script[src^='/js/iYFbYi_']").isNullOrEmpty()) "&decodeImage" else "" + val imageScrambled = if (!document.select("script[src^='/js/iYFbYi_U']").isNullOrEmpty()) "&decodeImage" else "" document.select("select#pages").first()?.select("option")?.forEach { pages.add(Page(pages.size, "", "${imagePath?.groupValues?.get(1)}${it.attr("data-img")}$imageScrambled"))