mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
fix epub
This commit is contained in:
parent
8f66913e45
commit
e465c979f8
@ -148,11 +148,13 @@ class EpubFile(var book: Book) {
|
||||
/*注:这里较大增加了内容加载的时间,所以首次获取内容后可存储到本地cache,减少重复加载*/
|
||||
for (res in epubBook.contents) {
|
||||
if (!findChapterFirstSource) {
|
||||
if (currentChapterFirstResourceHref == res.href) findChapterFirstSource = true
|
||||
if (currentChapterFirstResourceHref != res.href) continue
|
||||
findChapterFirstSource = true
|
||||
// 第一个xhtml文件
|
||||
elements.add(
|
||||
getBody(res, startFragmentId, endFragmentId)
|
||||
)
|
||||
// 是否继续遍历
|
||||
if (currentChapterFirstResourceHref == nextChapterFirstResourceHref) break
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user