diff --git a/app/src/main/java/io/legado/app/model/WebBook.kt b/app/src/main/java/io/legado/app/model/WebBook.kt index 69734fbdd..69dfb943c 100644 --- a/app/src/main/java/io/legado/app/model/WebBook.kt +++ b/app/src/main/java/io/legado/app/model/WebBook.kt @@ -84,8 +84,8 @@ class WebBook(val bookSource: BookSource) { scope: CoroutineScope = Coroutine.DEFAULT, context: CoroutineContext = Dispatchers.IO ): Coroutine { - book.type = bookSource.bookSourceType return Coroutine.async(scope, context) { + book.type = bookSource.bookSourceType val body = if (!book.infoHtml.isNullOrEmpty()) { book.infoHtml @@ -111,8 +111,8 @@ class WebBook(val bookSource: BookSource) { scope: CoroutineScope = Coroutine.DEFAULT, context: CoroutineContext = Dispatchers.IO ): Coroutine> { - book.type = bookSource.bookSourceType return Coroutine.async(scope, context) { + book.type = bookSource.bookSourceType val body = if (book.bookUrl == book.tocUrl && !book.tocHtml.isNullOrEmpty()) { book.tocHtml