|
|
@ -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) |
|
|
|