pull/43/head
kunfei 5 years ago
parent 1ccd22c337
commit 79187db2af
  1. 5
      app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt

@ -132,9 +132,10 @@ object BookChapterList {
val nextUrlList = arrayListOf<String>() val nextUrlList = arrayListOf<String>()
val analyzeRule = AnalyzeRule(book) val analyzeRule = AnalyzeRule(book)
analyzeRule.setContent(body, baseUrl) analyzeRule.setContent(body, baseUrl)
if (getNextUrl) { val nextTocRule = tocRule.nextTocUrl
if (getNextUrl && !nextTocRule.isNullOrEmpty()) {
SourceDebug.printLog(bookSource.bookSourceUrl, "获取目录下一页列表", printLog) SourceDebug.printLog(bookSource.bookSourceUrl, "获取目录下一页列表", printLog)
analyzeRule.getStringList(tocRule.nextTocUrl ?: "", true)?.let { analyzeRule.getStringList(nextTocRule, true)?.let {
for (item in it) { for (item in it) {
if (item != baseUrl) { if (item != baseUrl) {
nextUrlList.add(item) nextUrlList.add(item)

Loading…
Cancel
Save