添加批量换源

This commit is contained in:
kunfei
2022-04-04 08:36:03 +08:00
parent 3296bd1b6f
commit e6a44aaf8a
@@ -48,6 +48,10 @@ class ArrangeBookViewModel(application: Application) : BaseViewModel(application
if (book.origin == source.bookSourceUrl) return@forEachIndexed
WebBook.preciseSearchAwait(this, book.name, book.author, source)?.let {
val newBook = it.second
newBook.durChapterIndex = book.durChapterIndex
newBook.durChapterPos = book.durChapterPos
newBook.durChapterTitle = book.durChapterTitle
newBook.latestChapterTitle = book.latestChapterTitle
book.changeTo(newBook)
if (newBook.tocUrl.isEmpty()) {
WebBook.getBookInfoAwait(this, source, newBook)