pull/32/head
kunfei 5 years ago
parent 0212defc3b
commit 0c7a81324a
  1. 6
      app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt

@ -31,7 +31,13 @@ class BookChapterList {
val nextUrlList = arrayListOf(baseUrl) val nextUrlList = arrayListOf(baseUrl)
val chapterData = analyzeChapterList(body, tocRule) val chapterData = analyzeChapterList(body, tocRule)
chapterList.addAll(chapterData.chapterList) chapterList.addAll(chapterData.chapterList)
if (chapterData.nextUrlList.size == 1) {
var nextUrl = chapterData.nextUrlList[0]
while (nextUrl.isNotEmpty() && !nextUrlList.contains(nextUrl)) {
nextUrlList.add(nextUrl)
}
}
return chapterList return chapterList
} }

Loading…
Cancel
Save