pull/2093/head
821938089 2 years ago
parent e2ec305839
commit 229f34f10f
  1. 3
      app/src/main/java/io/legado/app/model/ReadBook.kt

@ -310,8 +310,9 @@ object ReadBook : CoroutineScope by MainScope() {
if (book != null && bookSource != null) { if (book != null && bookSource != null) {
CacheBook.getOrCreate(bookSource, book).download(scope, chapter) CacheBook.getOrCreate(bookSource, book).download(scope, chapter)
} else if (book != null) { } else if (book != null) {
val msg = if (book.isLocalBook()) "无内容" else "没有书源"
contentLoadFinish( contentLoadFinish(
book, chapter, "没有书源", resetPageOffset = resetPageOffset book, chapter, "加载正文失败\n$msg", resetPageOffset = resetPageOffset
) { ) {
success?.invoke() success?.invoke()
} }

Loading…
Cancel
Save