|
|
@ -93,12 +93,12 @@ class DownloadService : BaseService() { |
|
|
|
book = bookMap[bookUrl] |
|
|
|
book = bookMap[bookUrl] |
|
|
|
if (book == null) { |
|
|
|
if (book == null) { |
|
|
|
book = App.db.bookDao().getBook(bookUrl) |
|
|
|
book = App.db.bookDao().getBook(bookUrl) |
|
|
|
} |
|
|
|
|
|
|
|
if (book == null) { |
|
|
|
if (book == null) { |
|
|
|
removeDownload(bookUrl) |
|
|
|
removeDownload(bookUrl) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return book |
|
|
|
return book |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -111,12 +111,12 @@ class DownloadService : BaseService() { |
|
|
|
App.db.bookSourceDao().getBookSource(origin)?.let { |
|
|
|
App.db.bookSourceDao().getBookSource(origin)?.let { |
|
|
|
webBook = WebBook(it) |
|
|
|
webBook = WebBook(it) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (webBook == null) { |
|
|
|
if (webBook == null) { |
|
|
|
removeDownload(bookUrl) |
|
|
|
removeDownload(bookUrl) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return webBook |
|
|
|
return webBook |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|