|
|
@ -11,6 +11,7 @@ import io.legado.app.model.analyzeRule.AnalyzeRule |
|
|
|
import io.legado.app.model.analyzeRule.AnalyzeUrl |
|
|
|
import io.legado.app.model.analyzeRule.AnalyzeUrl |
|
|
|
import io.legado.app.utils.NetworkUtils |
|
|
|
import io.legado.app.utils.NetworkUtils |
|
|
|
import io.legado.app.utils.StringUtils.wordCountFormat |
|
|
|
import io.legado.app.utils.StringUtils.wordCountFormat |
|
|
|
|
|
|
|
import io.legado.app.utils.htmlFormat |
|
|
|
import kotlinx.coroutines.CancellationException |
|
|
|
import kotlinx.coroutines.CancellationException |
|
|
|
import kotlinx.coroutines.CoroutineScope |
|
|
|
import kotlinx.coroutines.CoroutineScope |
|
|
|
import kotlinx.coroutines.isActive |
|
|
|
import kotlinx.coroutines.isActive |
|
|
@ -161,7 +162,7 @@ object BookList { |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.latestChapterTitle}") |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.latestChapterTitle}") |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取简介") |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取简介") |
|
|
|
searchBook.intro = analyzeRule.getString(intro) |
|
|
|
searchBook.intro = analyzeRule.getString(intro).htmlFormat() |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.intro}", true) |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.intro}", true) |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取封面链接") |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取封面链接") |
|
|
@ -221,7 +222,7 @@ object BookList { |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.latestChapterTitle}", log) |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.latestChapterTitle}", log) |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取简介", log) |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取简介", log) |
|
|
|
searchBook.intro = analyzeRule.getString(ruleIntro) |
|
|
|
searchBook.intro = analyzeRule.getString(ruleIntro).htmlFormat() |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.intro}", log, true) |
|
|
|
Debug.log(bookSource.bookSourceUrl, "└${searchBook.intro}", log, true) |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
if (!scope.isActive) throw CancellationException() |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取封面链接", log) |
|
|
|
Debug.log(bookSource.bookSourceUrl, "┌获取封面链接", log) |
|
|
|