From 9ba83c0589741e66a1a7f2a19f640e31c23aaf3d Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 29 Mar 2022 16:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/BookCover.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/BookCover.kt b/app/src/main/java/io/legado/app/model/BookCover.kt index ae8be52e5..0451fcae4 100644 --- a/app/src/main/java/io/legado/app/model/BookCover.kt +++ b/app/src/main/java/io/legado/app/model/BookCover.kt @@ -110,13 +110,12 @@ object BookCover { if (!config.enable || config.searchUrl.isBlank() || config.coverRule.isBlank()) { return null } - val analyzeUrl = - AnalyzeUrl( - config.searchUrl, - book.name, - source = config, - headerMapF = config.getHeaderMap() - ) + val analyzeUrl = AnalyzeUrl( + config.searchUrl, + book.name, + source = config, + headerMapF = config.getHeaderMap() + ) val res = analyzeUrl.getStrResponseAwait() val analyzeRule = AnalyzeRule(book) analyzeRule.setContent(res.body)