From 2c51e1453f2a97fcac03a951d738d3aa2a4d86dc Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 18 Aug 2019 19:52:30 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/webbook/BookList.kt | 4 ++-- 1 file changed, 2 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 4ee99bb7c..421d9cdd7 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 @@ -113,7 +113,7 @@ object BookList { SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名") searchBook.name = analyzeRule.getString(name ?: "") ?: "" SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name ?: "") - if (!searchBook.name.isNullOrEmpty()) { + if (searchBook.name.isNotEmpty()) { SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取作者") searchBook.author = BookHelp.formatAuthor(analyzeRule.getString(author ?: "")) SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.author ?: "") @@ -163,7 +163,7 @@ object BookList { SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名", printLog) searchBook.name = analyzeRule.getString(ruleName) SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name, printLog) - if (!searchBook.name.isNullOrEmpty()) { + if (searchBook.name.isNotEmpty()) { SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书籍Url", printLog) searchBook.bookUrl = analyzeRule.getString(ruleBookUrl, true) SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.bookUrl, printLog)