feat: 多页目录同时获取

pull/95/head 3.20.021007
kunfei 5 years ago
parent 59da364288
commit db441a3bd3
  1. 4
      app/src/main/java/io/legado/app/model/webBook/BookChapterList.kt

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

Loading…
Cancel
Save