|
|
@ -11,17 +11,17 @@ object BookInfo { |
|
|
|
|
|
|
|
|
|
|
|
@Throws(Exception::class) |
|
|
|
@Throws(Exception::class) |
|
|
|
fun analyzeBookInfo( |
|
|
|
fun analyzeBookInfo( |
|
|
|
book: Book, |
|
|
|
book: Book, |
|
|
|
body: String?, |
|
|
|
body: String?, |
|
|
|
bookSource: BookSource, |
|
|
|
bookSource: BookSource, |
|
|
|
analyzeUrl: AnalyzeUrl |
|
|
|
analyzeUrl: AnalyzeUrl |
|
|
|
) { |
|
|
|
) { |
|
|
|
val baseUrl = analyzeUrl.url |
|
|
|
val baseUrl = analyzeUrl.url |
|
|
|
body ?: throw Exception( |
|
|
|
body ?: throw Exception( |
|
|
|
App.INSTANCE.getString( |
|
|
|
App.INSTANCE.getString( |
|
|
|
R.string.error_get_web_content, |
|
|
|
R.string.error_get_web_content, |
|
|
|
baseUrl |
|
|
|
baseUrl |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取成功:$baseUrl") |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取成功:$baseUrl") |
|
|
|
val infoRule = bookSource.getBookInfoRule() |
|
|
|
val infoRule = bookSource.getBookInfoRule() |
|
|
|