Improve initial page loading on Kissmanga

This commit is contained in:
inorichi 2018-05-23 13:19:10 +02:00
parent 4266908f14
commit e812f6d6e0
2 changed files with 6 additions and 14 deletions

View File

@ -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"
apply from: "$rootDir/common.gradle"

View File

@ -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()) {