From e812f6d6e063275fb884dd5e6f6f086621f82e69 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 23 May 2018 13:19:10 +0200 Subject: [PATCH] Improve initial page loading on Kissmanga --- src/en/kissmanga/build.gradle | 6 +++--- .../tachiyomi/extension/en/kissmanga/Kissmanga.kt | 14 +++----------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/en/kissmanga/build.gradle b/src/en/kissmanga/build.gradle index c29efb4c6..4d8c8be17 100644 --- a/src/en/kissmanga/build.gradle +++ b/src/en/kissmanga/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: Kissmanga' pkgNameSuffix = "en.kissmanga" extClass = '.Kissmanga' - extVersionCode = 4 - extVersionSuffix = 1 + extVersionCode = 5 + extVersionSuffix = 2 libVersion = '1.2' } @@ -14,4 +14,4 @@ dependencies { provided project(':duktape-stub') } -apply from: "$rootDir/common.gradle" \ No newline at end of file +apply from: "$rootDir/common.gradle" diff --git a/src/en/kissmanga/src/eu/kanade/tachiyomi/extension/en/kissmanga/Kissmanga.kt b/src/en/kissmanga/src/eu/kanade/tachiyomi/extension/en/kissmanga/Kissmanga.kt index e1af578e7..e6e51e184 100644 --- a/src/en/kissmanga/src/eu/kanade/tachiyomi/extension/en/kissmanga/Kissmanga.kt +++ b/src/en/kissmanga/src/eu/kanade/tachiyomi/extension/en/kissmanga/Kissmanga.kt @@ -152,17 +152,9 @@ class Kissmanga : ParsedHttpSource() { it.evaluate(ca) it.evaluate(lo) - // There are two functions in an inline script needed to decrypt the urls. We find and - // execute them. - var p = Pattern.compile("(.*CryptoJS.*)") - var m = p.matcher(body) - while (m.find()) { - it.evaluate(m.group(1)) - } - - // Finally find all the urls and decrypt them in JS. - p = Pattern.compile("""lstImages.push\((.*)\);""") - m = p.matcher(body) + // Find all the urls and decrypt them in JS. + val p = Pattern.compile("""lstImages.push\((.*)\);""") + val m = p.matcher(body) var i = 0 while (m.find()) {