This commit is contained in:
Horis
2024-07-11 21:53:24 +08:00
parent f82ec1e913
commit 10c18621d6
2 changed files with 5 additions and 1 deletions
@@ -153,6 +153,7 @@ class EpubFile(var book: Book) {
} }
//title标签中的内容不需要显示在正文中,去除 //title标签中的内容不需要显示在正文中,去除
elements.select("title").remove() elements.select("title").remove()
elements.select("[style*=display:none]").remove()
elements.select("img[src=\"cover.jpeg\"]").forEachIndexed { i, it -> elements.select("img[src=\"cover.jpeg\"]").forEachIndexed { i, it ->
if (i > 0) it.remove() if (i > 0) it.remove()
} }
@@ -165,7 +165,10 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
*/ */
fun loadChapterList(book: Book) { fun loadChapterList(book: Book) {
execute { execute {
loadChapterListAwait(book) if (loadChapterListAwait(book)) {
ReadBook.upMsg(null)
ReadBook.loadContent(resetPageOffset = true)
}
} }
} }