pull/1319/head
gedoor 3 years ago
parent ac668a1233
commit bb29a34d98
  1. 2
      app/src/main/java/io/legado/app/model/CacheBook.kt
  2. 2
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -171,7 +171,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) {
waitDownloadSet.add(index)
} else {
AppLog.addLog(
"download ${book.name}-${chapterTitle} error:${error.localizedMessage}",
"下载${book.name}-${chapterTitle}失败\n${error.localizedMessage}",
error
)
error.printOnDebug()

@ -91,7 +91,7 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
)
CacheBook.start(context, book.bookUrl, book.durChapterIndex, endIndex)
}.onError(upTocPool) {
AppLog.addLog("${book.name} 更新目录失败 error: ${it.localizedMessage}", it)
AppLog.addLog("${book.name} 更新目录失败\n${it.localizedMessage}", it)
it.printOnDebug()
}.onFinally(upTocPool) {
synchronized(this) {

Loading…
Cancel
Save