Merge remote-tracking branch 'origin/master'

pull/32/head
Administrator 5 years ago
commit e2ec71be05
  1. 19
      app/src/main/java/io/legado/app/model/webbook/BookList.kt

@ -110,13 +110,24 @@ object BookList {
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.isNullOrEmpty()) {
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取作者")
searchBook.author = analyzeRule.getString(author ?: "") searchBook.author = analyzeRule.getString(author ?: "")
searchBook.coverUrl = analyzeRule.getString(coverUrl ?: "") SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.author ?: "")
searchBook.intro = analyzeRule.getString(intro ?: "") SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取分类")
searchBook.latestChapterTitle = analyzeRule.getString(lastChapter ?: "")
searchBook.kind = analyzeRule.getString(kind ?: "") searchBook.kind = analyzeRule.getString(kind ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.kind ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取简介")
searchBook.intro = analyzeRule.getString(intro ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.intro ?: "", isHtml = true)
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取字数")
searchBook.wordCount = analyzeRule.getString(wordCount ?: "") searchBook.wordCount = analyzeRule.getString(wordCount ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.wordCount ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取封面Url")
searchBook.coverUrl = analyzeRule.getString(coverUrl ?: "", true)
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.coverUrl ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取最新章节")
searchBook.latestChapterTitle = analyzeRule.getString(lastChapter ?: "")
SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.latestChapterTitle ?: "")
return searchBook return searchBook
} }
} }

Loading…
Cancel
Save