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()) { if (!config.enable || config.searchUrl.isBlank() || config.coverRule.isBlank()) {
return null return null
} }
val analyzeUrl = val analyzeUrl = AnalyzeUrl(
AnalyzeUrl( config.searchUrl,
config.searchUrl, book.name,
book.name, source = config,
source = config, headerMapF = config.getHeaderMap()
headerMapF = config.getHeaderMap() )
)
val res = analyzeUrl.getStrResponseAwait() val res = analyzeUrl.getStrResponseAwait()
val analyzeRule = AnalyzeRule(book) val analyzeRule = AnalyzeRule(book)
analyzeRule.setContent(res.body) analyzeRule.setContent(res.body)

Loading…
Cancel
Save