From 383f5d100095da6cd5d1bc1ae91ef8bd8006771b Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 21:21:42 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/webbook/BookList.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/webbook/BookList.kt b/app/src/main/java/io/legado/app/model/webbook/BookList.kt index b24e414f4..bbdd28766 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookList.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookList.kt @@ -108,8 +108,10 @@ object BookList { analyzeRule.setBook(searchBook) with(bookSource.getBookInfoRule()) { init?.let { - SourceDebug.printLog(bookSource.bookSourceUrl, 1, "执行详情页初始化规则") - analyzeRule.setContent(analyzeRule.getElement(it)) + if (it.isNotEmpty()) { + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "执行详情页初始化规则") + analyzeRule.setContent(analyzeRule.getElement(it)) + } } SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名") searchBook.name = analyzeRule.getString(name ?: "") ?: ""