pull/1649/head
kunfei 3 years ago
parent 9e0e47c15e
commit 4536837db6
  1. 4
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceViewModel.kt

@ -285,7 +285,9 @@ class ChangeChapterSourceViewModel(application: Application) : BaseViewModel(app
if (book.tocUrl.isEmpty()) { if (book.tocUrl.isEmpty()) {
WebBook.getBookInfoAwait(this, source, book) WebBook.getBookInfoAwait(this, source, book)
} }
WebBook.getChapterListAwait(this, source, book) val toc = WebBook.getChapterListAwait(this, source, book)
tocMap[book.bookUrl] = toc
toc
} }
}.onSuccess { }.onSuccess {
success(it) success(it)

Loading…
Cancel
Save