pull/32/head
kunfei 5 years ago
parent 9fa16062df
commit 2c51e1453f
  1. 4
      app/src/main/java/io/legado/app/model/webbook/BookList.kt

@ -113,7 +113,7 @@ object BookList {
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名") SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名")
searchBook.name = analyzeRule.getString(name ?: "") ?: "" searchBook.name = analyzeRule.getString(name ?: "") ?: ""
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name ?: "") SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name ?: "")
if (!searchBook.name.isNullOrEmpty()) { if (searchBook.name.isNotEmpty()) {
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取作者") SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取作者")
searchBook.author = BookHelp.formatAuthor(analyzeRule.getString(author ?: "")) searchBook.author = BookHelp.formatAuthor(analyzeRule.getString(author ?: ""))
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.author ?: "") SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.author ?: "")
@ -163,7 +163,7 @@ object BookList {
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名", printLog) SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书名", printLog)
searchBook.name = analyzeRule.getString(ruleName) searchBook.name = analyzeRule.getString(ruleName)
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name, printLog) SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name, printLog)
if (!searchBook.name.isNullOrEmpty()) { if (searchBook.name.isNotEmpty()) {
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书籍Url", printLog) SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取书籍Url", printLog)
searchBook.bookUrl = analyzeRule.getString(ruleBookUrl, true) searchBook.bookUrl = analyzeRule.getString(ruleBookUrl, true)
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.bookUrl, printLog) SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.bookUrl, printLog)

Loading…
Cancel
Save