|
|
@ -23,6 +23,7 @@ object BookContent { |
|
|
|
book: Book, |
|
|
|
book: Book, |
|
|
|
bookChapter: BookChapter, |
|
|
|
bookChapter: BookChapter, |
|
|
|
bookSource: BookSource, |
|
|
|
bookSource: BookSource, |
|
|
|
|
|
|
|
analyzeUrl: AnalyzeUrl, |
|
|
|
nextChapterUrlF: String? = null |
|
|
|
nextChapterUrlF: String? = null |
|
|
|
): String { |
|
|
|
): String { |
|
|
|
val baseUrl: String = NetworkUtils.getUrl(response) |
|
|
|
val baseUrl: String = NetworkUtils.getUrl(response) |
|
|
@ -30,10 +31,10 @@ object BookContent { |
|
|
|
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 |
|
|
|
analyzeUrl.ruleUrl |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取成功:$baseUrl") |
|
|
|
SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取成功:${analyzeUrl.ruleUrl}") |
|
|
|
val content = StringBuilder() |
|
|
|
val content = StringBuilder() |
|
|
|
val nextUrlList = arrayListOf(baseUrl) |
|
|
|
val nextUrlList = arrayListOf(baseUrl) |
|
|
|
val contentRule = bookSource.getContentRule() |
|
|
|
val contentRule = bookSource.getContentRule() |
|
|
|