|
|
@ -133,11 +133,7 @@ object BookList { |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.kind) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.kind) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取简介") |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取简介") |
|
|
|
searchBook.intro = analyzeRule.getString(intro ?: "") |
|
|
|
searchBook.intro = analyzeRule.getString(intro ?: "") |
|
|
|
SourceDebug.printLog( |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.intro, true) |
|
|
|
bookSource.bookSourceUrl, |
|
|
|
|
|
|
|
msg = searchBook.intro, |
|
|
|
|
|
|
|
isHtml = true |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取字数") |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取字数") |
|
|
|
searchBook.wordCount = analyzeRule.getString(wordCount ?: "") |
|
|
|
searchBook.wordCount = analyzeRule.getString(wordCount ?: "") |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.wordCount) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.wordCount) |
|
|
@ -174,43 +170,34 @@ object BookList { |
|
|
|
searchBook.originOrder = bookSource.customOrder |
|
|
|
searchBook.originOrder = bookSource.customOrder |
|
|
|
analyzeRule.setBook(searchBook) |
|
|
|
analyzeRule.setBook(searchBook) |
|
|
|
analyzeRule.setContent(item) |
|
|
|
analyzeRule.setContent(item) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取书名", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取书名", printLog) |
|
|
|
searchBook.name = analyzeRule.getString(ruleName) |
|
|
|
searchBook.name = analyzeRule.getString(ruleName) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.name, print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.name, printLog) |
|
|
|
if (searchBook.name.isNotEmpty()) { |
|
|
|
if (searchBook.name.isNotEmpty()) { |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取书籍Url", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取书籍Url", printLog) |
|
|
|
searchBook.bookUrl = analyzeRule.getString(ruleBookUrl, true) |
|
|
|
searchBook.bookUrl = analyzeRule.getString(ruleBookUrl, true) |
|
|
|
if (searchBook.bookUrl.isEmpty()) { |
|
|
|
if (searchBook.bookUrl.isEmpty()) { |
|
|
|
searchBook.bookUrl = baseUrl |
|
|
|
searchBook.bookUrl = baseUrl |
|
|
|
} |
|
|
|
} |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.bookUrl, print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.bookUrl, printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取作者", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取作者", printLog) |
|
|
|
searchBook.author = BookHelp.formatAuthor(analyzeRule.getString(ruleAuthor)) |
|
|
|
searchBook.author = BookHelp.formatAuthor(analyzeRule.getString(ruleAuthor)) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.author, print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.author, printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取分类", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取分类", printLog) |
|
|
|
searchBook.kind = analyzeRule.getString(ruleKind) |
|
|
|
searchBook.kind = analyzeRule.getString(ruleKind) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.kind, print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.kind, printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取简介", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取简介", printLog) |
|
|
|
searchBook.intro = analyzeRule.getString(ruleIntro) |
|
|
|
searchBook.intro = analyzeRule.getString(ruleIntro) |
|
|
|
SourceDebug.printLog( |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.intro, printLog, true) |
|
|
|
bookSource.bookSourceUrl, |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取字数", printLog) |
|
|
|
searchBook.intro, |
|
|
|
|
|
|
|
print = printLog, |
|
|
|
|
|
|
|
isHtml = true |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取字数", print = printLog) |
|
|
|
|
|
|
|
searchBook.wordCount = analyzeRule.getString(ruleWordCount) |
|
|
|
searchBook.wordCount = analyzeRule.getString(ruleWordCount) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.wordCount, print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.wordCount, printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取封面Url", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取封面Url", printLog) |
|
|
|
searchBook.coverUrl = analyzeRule.getString(ruleCoverUrl, true) |
|
|
|
searchBook.coverUrl = analyzeRule.getString(ruleCoverUrl, true) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.coverUrl, print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.coverUrl, printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取最新章节", print = printLog) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, "获取最新章节", printLog) |
|
|
|
searchBook.latestChapterTitle = analyzeRule.getString(ruleLastChapter) |
|
|
|
searchBook.latestChapterTitle = analyzeRule.getString(ruleLastChapter) |
|
|
|
SourceDebug.printLog( |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, searchBook.latestChapterTitle, printLog) |
|
|
|
bookSource.bookSourceUrl, |
|
|
|
|
|
|
|
searchBook.latestChapterTitle, |
|
|
|
|
|
|
|
print = printLog |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
return searchBook |
|
|
|
return searchBook |
|
|
|
} |
|
|
|
} |
|
|
|
return null |
|
|
|
return null |
|
|
|