添加批量换源

pull/1751/head
kunfei 3 years ago
parent 617231a742
commit 155e02fe63
  1. 1
      app/src/main/assets/updateLog.md
  2. 1
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookViewModel.kt

@ -14,6 +14,7 @@
**2022/04/02** **2022/04/02**
* 添加所有书签 * 添加所有书签
* 添加批量换源
**2022/03/31** **2022/03/31**

@ -44,6 +44,7 @@ class ArrangeBookViewModel(application: Application) : BaseViewModel(application
batchChangeSourceSize.value = books.size batchChangeSourceSize.value = books.size
books.forEachIndexed { index, book -> books.forEachIndexed { index, book ->
batchChangeSourcePosition.value = index + 1 batchChangeSourcePosition.value = index + 1
if (book.isLocalBook()) return@forEachIndexed
WebBook.preciseSearchAwait(this, book.name, book.author, source)?.let { WebBook.preciseSearchAwait(this, book.name, book.author, source)?.let {
book.changeTo(it.second) book.changeTo(it.second)
} }

Loading…
Cancel
Save