mirror of
https://github.com/gedoor/legado.git
synced 2024-07-17 00:58:29 +08:00
优化
This commit is contained in:
parent
d5dcafd572
commit
48550be1bb
@ -120,7 +120,7 @@ object BookContent {
|
||||
analyzeContent(
|
||||
book, urlStr, res.url, res.body!!, contentRule,
|
||||
bookChapter, bookSource, mNextChapterUrl,
|
||||
getNextChapterUrl = false,
|
||||
getNextPageUrl = false,
|
||||
printLog = false
|
||||
).first
|
||||
}
|
||||
@ -160,7 +160,7 @@ object BookContent {
|
||||
chapter: BookChapter,
|
||||
bookSource: BookSource,
|
||||
nextChapterUrl: String?,
|
||||
getNextChapterUrl: Boolean = true,
|
||||
getNextPageUrl: Boolean = true,
|
||||
printLog: Boolean = true
|
||||
): Pair<String, List<String>> {
|
||||
val analyzeRule = AnalyzeRule(book, bookSource)
|
||||
@ -173,7 +173,7 @@ object BookContent {
|
||||
var content = analyzeRule.getString(contentRule.content, unescape = false)
|
||||
content = HtmlFormatter.formatKeepImg(content, rUrl)
|
||||
//获取下一页链接
|
||||
if (getNextChapterUrl) {
|
||||
if (getNextPageUrl) {
|
||||
val nextUrlRule = contentRule.nextContentUrl
|
||||
if (!nextUrlRule.isNullOrEmpty()) {
|
||||
Debug.log(bookSource.bookSourceUrl, "┌获取正文下一页链接", printLog)
|
||||
|
Loading…
Reference in New Issue
Block a user