|
|
@ -138,6 +138,7 @@ class WebBook(val bookSource: BookSource) { |
|
|
|
): Coroutine<String> { |
|
|
|
): Coroutine<String> { |
|
|
|
return Coroutine.async(scope, context) { |
|
|
|
return Coroutine.async(scope, context) { |
|
|
|
if (bookSource.getContentRule().content.isNullOrEmpty()) { |
|
|
|
if (bookSource.getContentRule().content.isNullOrEmpty()) { |
|
|
|
|
|
|
|
Debug.log(sourceUrl, "内容规则为空,直接返回目录Url:${bookChapter.url}") |
|
|
|
return@async bookChapter.url |
|
|
|
return@async bookChapter.url |
|
|
|
} |
|
|
|
} |
|
|
|
val body = if (bookChapter.url == book.bookUrl && !book.tocHtml.isNullOrEmpty()) { |
|
|
|
val body = if (bookChapter.url == book.bookUrl && !book.tocHtml.isNullOrEmpty()) { |
|
|
|