From cf07fe4326332363fe3e4f0c5d00c741bb9b9d5a Mon Sep 17 00:00:00 2001 From: Hydrox Date: Wed, 16 Mar 2022 13:54:35 +0000 Subject: [PATCH] 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. --- src/en/latisbooks/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/latisbooks/build.gradle b/src/en/latisbooks/build.gradle index d33c3f981..ab4e4dc38 100644 --- a/src/en/latisbooks/build.gradle +++ b/src/en/latisbooks/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Latis Books' pkgNameSuffix = 'en.latisbooks' extClass = '.Latisbooks' - extVersionCode = 3 + extVersionCode = 4 isNsfw = true } diff --git a/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt b/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt index e46fa2b18..7aa23107c 100644 --- a/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt +++ b/src/en/latisbooks/src/eu/kanade/tachiyomi/extension/en/latisbooks/Latisbooks.kt @@ -122,7 +122,7 @@ class Latisbooks : HttpSource() { // Handle multiple images per page (e.g. Page 23+24) 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() val numImages = pages.size @@ -133,7 +133,7 @@ class Latisbooks : HttpSource() { .map { it.select("div.sqs-block-content").first() } // Some pages have empty html blocks (e.g. Page 1), so ignore them .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() )