|
|
@ -83,9 +83,13 @@ object BookChapterList { |
|
|
|
else -> { |
|
|
|
else -> { |
|
|
|
val chapterDataList = arrayListOf<ChapterData<String>>() |
|
|
|
val chapterDataList = arrayListOf<ChapterData<String>>() |
|
|
|
for (item in chapterData.nextUrl) { |
|
|
|
for (item in chapterData.nextUrl) { |
|
|
|
val data = ChapterData(nextUrl = item) |
|
|
|
if (!nextUrlList.contains(item)) { |
|
|
|
chapterDataList.add(data) |
|
|
|
val data = ChapterData(nextUrl = item) |
|
|
|
|
|
|
|
chapterDataList.add(data) |
|
|
|
|
|
|
|
nextUrlList.add(item) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Debug.log(bookSource.bookSourceUrl, "◇目录总页数:${nextUrlList.size}") |
|
|
|
for (item in chapterDataList) { |
|
|
|
for (item in chapterDataList) { |
|
|
|
Coroutine.async(scope = coroutineScope) { |
|
|
|
Coroutine.async(scope = coroutineScope) { |
|
|
|
val nextBody = AnalyzeUrl( |
|
|
|
val nextBody = AnalyzeUrl( |
|
|
|