mirror of
https://github.com/gedoor/legado.git
synced 2024-07-17 00:58:29 +08:00
优化
This commit is contained in:
parent
ba90882998
commit
d5dcafd572
@ -173,13 +173,15 @@ object BookContent {
|
||||
var content = analyzeRule.getString(contentRule.content, unescape = false)
|
||||
content = HtmlFormatter.formatKeepImg(content, rUrl)
|
||||
//获取下一页链接
|
||||
val nextUrlRule = contentRule.nextContentUrl
|
||||
if (getNextChapterUrl && !nextUrlRule.isNullOrEmpty()) {
|
||||
Debug.log(bookSource.bookSourceUrl, "┌获取正文下一页链接", printLog)
|
||||
analyzeRule.getStringList(nextUrlRule, isUrl = true)?.let {
|
||||
nextUrlList.addAll(it)
|
||||
if (getNextChapterUrl) {
|
||||
val nextUrlRule = contentRule.nextContentUrl
|
||||
if (!nextUrlRule.isNullOrEmpty()) {
|
||||
Debug.log(bookSource.bookSourceUrl, "┌获取正文下一页链接", printLog)
|
||||
analyzeRule.getStringList(nextUrlRule, isUrl = true)?.let {
|
||||
nextUrlList.addAll(it)
|
||||
}
|
||||
Debug.log(bookSource.bookSourceUrl, "└" + nextUrlList.joinToString(","), printLog)
|
||||
}
|
||||
Debug.log(bookSource.bookSourceUrl, "└" + nextUrlList.joinToString(","), printLog)
|
||||
}
|
||||
return Pair(content, nextUrlList)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user