diff --git a/src/en/kissmanga/build.gradle b/src/en/kissmanga/build.gradle index 4d8c8be17..e8c173753 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 = 5 - extVersionSuffix = 2 + extVersionCode = 6 + extVersionSuffix = 3 libVersion = '1.2' } 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 e6e51e184..7d6d2f901 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,9 +152,17 @@ class Kissmanga : ParsedHttpSource() { it.evaluate(ca) it.evaluate(lo) - // Find all the urls and decrypt them in JS. - val p = Pattern.compile("""lstImages.push\((.*)\);""") - val m = p.matcher(body) + // There are two functions in an inline script needed to decrypt the urls. We find and + // execute them. + var p = Pattern.compile("(var.*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) var i = 0 while (m.find()) {