pull/84/head
kunfei 5 years ago
parent 08ce86ba40
commit 7f9defbb09
  1. 2
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfViewModel.kt

@ -45,7 +45,7 @@ class BookshelfViewModel(application: Application) : BaseViewModel(application)
for (url in urls) {
val bookUrl = url.trim()
if (bookUrl.isEmpty()) continue
App.db.bookDao().getBook(bookUrl) ?: continue
if (App.db.bookDao().getBook(bookUrl) != null) continue
val baseUrl = NetworkUtils.getBaseUrl(bookUrl) ?: continue
var source = App.db.bookSourceDao().getBookSource(baseUrl)
if (source == null) {

Loading…
Cancel
Save