From 4ad1fd9c868d9e8a0329a759a704d15ecc27fe29 Mon Sep 17 00:00:00 2001 From: hoodie13 <74173949+hoodie13@users.noreply.github.com> Date: Sat, 13 Mar 2021 09:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86epub?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/localBook/EPUBFile.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/localBook/EPUBFile.kt b/app/src/main/java/io/legado/app/model/localBook/EPUBFile.kt index 77246e20b..a209cf533 100644 --- a/app/src/main/java/io/legado/app/model/localBook/EPUBFile.kt +++ b/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