mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 01:39:19 +01:00
Bugfix on save instance state. Also improve initial page loading on Kissmanga
This commit is contained in:
parent
9d5cf9163a
commit
10f36f40d6
@ -154,17 +154,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()) {
|
||||||
@ -244,4 +236,4 @@ class Kissmanga : ParsedHttpSource() {
|
|||||||
Genre("Yaoi"),
|
Genre("Yaoi"),
|
||||||
Genre("Yuri")
|
Genre("Yuri")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder
|
|||||||
import kotlinx.android.synthetic.main.extension_card_header.*
|
import kotlinx.android.synthetic.main.extension_card_header.*
|
||||||
|
|
||||||
class ExtensionGroupHolder(view: View, adapter: FlexibleAdapter<*>) :
|
class ExtensionGroupHolder(view: View, adapter: FlexibleAdapter<*>) :
|
||||||
BaseFlexibleViewHolder(view, adapter, true) {
|
BaseFlexibleViewHolder(view, adapter) {
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
fun bind(item: ExtensionGroupItem) {
|
fun bind(item: ExtensionGroupItem) {
|
||||||
|
Loading…
Reference in New Issue
Block a user