latisbooks: fix page loading (#11139)
my bad, I thought it worked without the extra strings, but I guess when I tested it, the chapter cache was stale. Even with debugging tools, Android is pain.
This commit is contained in:
parent
dd2bb6cd82
commit
cf07fe4326
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Latis Books'
|
extName = 'Latis Books'
|
||||||
pkgNameSuffix = 'en.latisbooks'
|
pkgNameSuffix = 'en.latisbooks'
|
||||||
extClass = '.Latisbooks'
|
extClass = '.Latisbooks'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ class Latisbooks : HttpSource() {
|
||||||
|
|
||||||
// Handle multiple images per page (e.g. Page 23+24)
|
// Handle multiple images per page (e.g. Page 23+24)
|
||||||
val pages = blocks.select("img.thumb-image")
|
val pages = blocks.select("img.thumb-image")
|
||||||
.mapIndexed { i, it -> Page(i, it.attr("abs:data-src")) }
|
.mapIndexed { i, it -> Page(i, "", it.attr("abs:data-src")) }
|
||||||
.toMutableList()
|
.toMutableList()
|
||||||
|
|
||||||
val numImages = pages.size
|
val numImages = pages.size
|
||||||
|
@ -133,7 +133,7 @@ class Latisbooks : HttpSource() {
|
||||||
.map { it.select("div.sqs-block-content").first() }
|
.map { it.select("div.sqs-block-content").first() }
|
||||||
// Some pages have empty html blocks (e.g. Page 1), so ignore them
|
// Some pages have empty html blocks (e.g. Page 1), so ignore them
|
||||||
.filter { it.childrenSize() > 0 }
|
.filter { it.childrenSize() > 0 }
|
||||||
.mapIndexed { i, it -> Page(i + numImages, wordWrap(it.text()).image()) }
|
.mapIndexed { i, it -> Page(i + numImages, "", wordWrap(it.text()).image()) }
|
||||||
.toList()
|
.toList()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue