mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 11:17:25 +01:00
Fix kissmanga not loading for some people after the previous update
This commit is contained in:
parent
10f36f40d6
commit
c6cfd24f19
@ -154,9 +154,17 @@ class Kissmanga : ParsedHttpSource() {
|
|||||||
it.evaluate(ca)
|
it.evaluate(ca)
|
||||||
it.evaluate(lo)
|
it.evaluate(lo)
|
||||||
|
|
||||||
// Find all the urls and decrypt them in JS.
|
// There are two functions in an inline script needed to decrypt the urls. We find and
|
||||||
val p = Pattern.compile("""lstImages.push\((.*)\);""")
|
// execute them.
|
||||||
val m = p.matcher(body)
|
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
|
var i = 0
|
||||||
while (m.find()) {
|
while (m.find()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user