pull/32/head
kunfei 5 years ago
parent c75156ca2c
commit aaad5da071
  1. 16
      app/src/main/java/io/legado/app/model/webbook/BookInfo.kt

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

Loading…
Cancel
Save