This commit is contained in:
Horis committed 2024-07-11 21:53:24 +08:00
1 parent f82ec1e913
commit 10c18621d6
2 files changed
+5 -1

No files matched your search

@@ -153,6 +153,7 @@ class EpubFile(var book: Book) {
}
//title标签中的内容不需要显示在正文中,去除
elements.select("title").remove()
elements.select("[style*=display:none]").remove()
elements.select("img[src=\"cover.jpeg\"]").forEachIndexed { i, it ->
if (i > 0) it.remove()
}
@@ -165,7 +165,10 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
*/
fun loadChapterList(book: Book) {
execute {
loadChapterListAwait(book)
if (loadChapterListAwait(book)) {
ReadBook.upMsg(null)
ReadBook.loadContent(resetPageOffset = true)
}
}
}