From 6dea502771a3f3bfdb53cba417b4a7a23206de5f Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 22 Jul 2019 17:12:39 +0800 Subject: [PATCH] up --- .../app/model/webbook/BookChapterList.kt | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) 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 e965b9460..cbbb459a7 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 @@ -70,18 +70,16 @@ object BookChapterList { } } for (item in chapterDataList) { - if (!nextUrlList.contains(item.nextUrl)) { - withContext(coroutineScope.coroutineContext) { - val nextResponse = AnalyzeUrl(ruleUrl = item.nextUrl, book = book).getResponseAsync().await() - val nextChapterData = analyzeChapterList( - nextResponse.body() ?: "", - item.nextUrl, - tocRule, - listRule, - book - ) - item.chapterList = nextChapterData.chapterList - } + withContext(coroutineScope.coroutineContext) { + val nextResponse = AnalyzeUrl(ruleUrl = item.nextUrl, book = book).getResponseAsync().await() + val nextChapterData = analyzeChapterList( + nextResponse.body() ?: "", + item.nextUrl, + tocRule, + listRule, + book + ) + item.chapterList = nextChapterData.chapterList } } for (item in chapterDataList) {