From 4d2340cc632eb107b2071480445d90cdff608f61 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 4 Nov 2019 10:59:07 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/WebBook.kt | 2 ++ 1 file changed, 2 insertions(+) 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 839561401..e57adeefe 100644 --- a/app/src/main/java/io/legado/app/model/WebBook.kt +++ b/app/src/main/java/io/legado/app/model/WebBook.kt @@ -85,6 +85,7 @@ class WebBook(val bookSource: BookSource) { scope: CoroutineScope = Coroutine.DEFAULT, context: CoroutineContext = Dispatchers.IO ): Coroutine { + book.type = bookSource.bookSourceType return Coroutine.async(scope, context) { val body = if (!book.infoHtml.isNullOrEmpty()) { book.infoHtml @@ -114,6 +115,7 @@ class WebBook(val bookSource: BookSource) { scope: CoroutineScope = Coroutine.DEFAULT, context: CoroutineContext = Dispatchers.IO ): Coroutine> { + book.type = bookSource.bookSourceType return Coroutine.async(scope, context) { val body = if (book.bookUrl == book.tocUrl && !book.tocHtml.isNullOrEmpty()) { book.tocHtml