diff --git a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt index 64e9a1ca3..264277ccf 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt @@ -31,7 +31,13 @@ class BookChapterList { val nextUrlList = arrayListOf(baseUrl) val chapterData = analyzeChapterList(body, tocRule) 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 }