@ -33,7 +33,7 @@ interface BookDao {
fun getBook(bookUrl: String): Book?
@get:Query("SELECT * FROM books where origin <> '${BookType.local}'")
val webBooks: List<Book>
val hasUpdateBooks: List<Book>
@get:Query("SELECT * FROM books")
val allBooks: List<Book>
@ -35,7 +35,7 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application)
fun downloadAll() {
execute {
App.db.bookDao().webBooks.forEach { book ->
App.db.bookDao().hasUpdateBooks.forEach { book ->
Download.start(context, book.bookUrl, book.durChapterIndex, book.totalChapterNum)
}