From 80866b1bad76748434961fb323b8bbbd67c9ff01 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 1 Aug 2019 11:09:57 +0800 Subject: [PATCH] up --- .../io/legado/app/model/webbook/BookList.kt | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 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 1fcc447dc..096d6d83c 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 @@ -110,13 +110,24 @@ object BookList { searchBook.name = analyzeRule.getString(name ?: "") SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.name ?: "") if (!searchBook.name.isNullOrEmpty()) { + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取作者") searchBook.author = analyzeRule.getString(author ?: "") - searchBook.coverUrl = analyzeRule.getString(coverUrl ?: "") - searchBook.intro = analyzeRule.getString(intro ?: "") - searchBook.latestChapterTitle = analyzeRule.getString(lastChapter ?: "") + SourceDebug.printLog(bookSource.bookSourceUrl, 1, searchBook.author ?: "") + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取分类") 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 ?: "") - + 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 } }