From f2a38ba906d6e88dde70b6def292463671797df5 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Mon, 24 Jan 2022 18:28:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B9=A6=E6=BA=90=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/model/webBook/BookInfo.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt b/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt index ceb1b3b75..81fdc0a80 100644 --- a/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt +++ b/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt @@ -82,8 +82,8 @@ object BookInfo { ?.joinToString(",") ?.let { if (it.isNotEmpty()) book.kind = it - } - Debug.log(bookSource.bookSourceUrl, "└${book.kind}") + Debug.log(bookSource.bookSourceUrl, "└${it}") + } ?: Debug.log(bookSource.bookSourceUrl, "└") } catch (e: Exception) { Debug.log(bookSource.bookSourceUrl, "└${e.localizedMessage}") } @@ -92,8 +92,8 @@ object BookInfo { try { wordCountFormat(analyzeRule.getString(infoRule.wordCount)).let { if (it.isNotEmpty()) book.wordCount = it + Debug.log(bookSource.bookSourceUrl, "└${it}") } - Debug.log(bookSource.bookSourceUrl, "└${book.wordCount}") } catch (e: Exception) { Debug.log(bookSource.bookSourceUrl, "└${e.localizedMessage}") } @@ -102,18 +102,18 @@ object BookInfo { try { analyzeRule.getString(infoRule.lastChapter).let { if (it.isNotEmpty()) book.latestChapterTitle = it + Debug.log(bookSource.bookSourceUrl, "└${it}") } - Debug.log(bookSource.bookSourceUrl, "└${book.latestChapterTitle}") } catch (e: Exception) { Debug.log(bookSource.bookSourceUrl, "└${e.localizedMessage}") } scope.ensureActive() Debug.log(bookSource.bookSourceUrl, "┌获取简介") try { - analyzeRule.getString(infoRule.intro).let { - if (it.isNotEmpty()) book.intro = HtmlFormatter.format(it) + HtmlFormatter.format(analyzeRule.getString(infoRule.intro)).let { + if (it.isNotEmpty()) book.intro = it + Debug.log(bookSource.bookSourceUrl, "└${it}") } - Debug.log(bookSource.bookSourceUrl, "└${book.intro}") } catch (e: Exception) { Debug.log(bookSource.bookSourceUrl, "└${e.localizedMessage}") } @@ -122,8 +122,8 @@ object BookInfo { try { analyzeRule.getString(infoRule.coverUrl).let { if (it.isNotEmpty()) book.coverUrl = NetworkUtils.getAbsoluteURL(baseUrl, it) + Debug.log(bookSource.bookSourceUrl, "└${it}") } - Debug.log(bookSource.bookSourceUrl, "└${book.coverUrl}") } catch (e: Exception) { Debug.log(bookSource.bookSourceUrl, "└${e.localizedMessage}") }