Improve initial page loading on Kissmanga
This commit is contained in:
parent
4266908f14
commit
e812f6d6e0
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: Kissmanga'
|
appName = 'Tachiyomi: Kissmanga'
|
||||||
pkgNameSuffix = "en.kissmanga"
|
pkgNameSuffix = "en.kissmanga"
|
||||||
extClass = '.Kissmanga'
|
extClass = '.Kissmanga'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
extVersionSuffix = 1
|
extVersionSuffix = 2
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,17 +152,9 @@ class Kissmanga : ParsedHttpSource() {
|
||||||
it.evaluate(ca)
|
it.evaluate(ca)
|
||||||
it.evaluate(lo)
|
it.evaluate(lo)
|
||||||
|
|
||||||
// There are two functions in an inline script needed to decrypt the urls. We find and
|
// Find all the urls and decrypt them in JS.
|
||||||
// execute them.
|
val p = Pattern.compile("""lstImages.push\((.*)\);""")
|
||||||
var p = Pattern.compile("(.*CryptoJS.*)")
|
val m = p.matcher(body)
|
||||||
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
|
var i = 0
|
||||||
while (m.find()) {
|
while (m.find()) {
|
||||||
|
|
Loading…
Reference in New Issue