pull/1744/head
kunfei 3 years ago
parent 121ccf4dc7
commit 9ba83c0589
  1. 13
      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)

Loading…
Cancel
Save