pull/32/head
kunfei 5 years ago
parent 88182d93f0
commit 184142c35c
  1. 3
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt

@ -49,13 +49,14 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
.timeout(30000L)
.onSuccess(Dispatchers.IO) {
it?.let { list ->
list.map { searchBook ->
for (searchBook in list) {
if (searchBook.name == name && searchBook.author == author) {
if (searchBook.tocUrl.isEmpty()) {
loadBookInfo(searchBook.toBook())
} else {
loadChapter(searchBook.toBook())
}
break
}
}
}

Loading…
Cancel
Save