Update EpubFile.kt

pull/2402/head
Xwite 2 years ago committed by GitHub
parent 73dad59199
commit e0f74185db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/model/localBook/EpubFile.kt

@ -132,7 +132,7 @@ class EpubFile(var book: Book) {
val endFragmentId = chapter.endFragmentId val endFragmentId = chapter.endFragmentId
val elements = Elements() val elements = Elements()
var hasMoreResources = false var hasMoreResources = false
val includeNextChapterResource = endFragmentId.isNullOrBlank() val includeNextChapterResource = !endFragmentId.isNullOrBlank()
/*一些书籍依靠href索引的resource会包含多个章节,需要依靠fragmentId来截取到当前章节的内容*/ /*一些书籍依靠href索引的resource会包含多个章节,需要依靠fragmentId来截取到当前章节的内容*/
/*注:这里较大增加了内容加载的时间,所以首次获取内容后可存储到本地cache,减少重复加载*/ /*注:这里较大增加了内容加载的时间,所以首次获取内容后可存储到本地cache,减少重复加载*/
for (res in epubBook.contents) { for (res in epubBook.contents) {

Loading…
Cancel
Save