添加批量换源

This commit is contained in:
kunfei
2022-04-03 23:24:40 +08:00
parent 155e02fe63
commit c267382d6f
@@ -45,6 +45,7 @@ class ArrangeBookViewModel(application: Application) : BaseViewModel(application
books.forEachIndexed { index, book ->
batchChangeSourcePosition.value = index + 1
if (book.isLocalBook()) return@forEachIndexed
if (book.origin == source.bookSourceUrl) return@forEachIndexed
WebBook.preciseSearchAwait(this, book.name, book.author, source)?.let {
book.changeTo(it.second)
}