pull/46/head
kunfei 5 years ago
parent 296e33c43f
commit c5dd8738b6
  1. 3
      app/src/main/java/io/legado/app/model/WebBook.kt

@ -137,6 +137,9 @@ class WebBook(val bookSource: BookSource) {
context: CoroutineContext = Dispatchers.IO
): Coroutine<String> {
return Coroutine.async(scope, context) {
if (bookSource.getContentRule().content.isNullOrEmpty()) {
return@async bookChapter.url
}
val body = if (bookChapter.url == book.bookUrl && !book.tocHtml.isNullOrEmpty()) {
book.tocHtml
} else {

Loading…
Cancel
Save