修复部分epub目录空白

pull/894/head
hoodie13 4 years ago
parent 2712f0eb18
commit 4ad1fd9c86
  1. 4
      app/src/main/java/io/legado/app/model/localBook/EPUBFile.kt

@ -317,7 +317,9 @@ class EPUBFile(var book: io.legado.app.data.entities.Book) {
)
).getElementsByTag("title")
title =
if (elements != null && elements.size > 0) elements[0].text() else "--卷首--"
if (elements != null && elements.size > 0 && elements[0].text()
.isNotBlank()
) elements[0].text() else "--卷首--"
}
chapter.bookUrl = book.bookUrl
chapter.title = title

Loading…
Cancel
Save