This commit is contained in:
Jobobby04 2020-05-11 16:31:19 -04:00
parent 7f02a533fa
commit 46dccf8a2d

View File

@ -282,9 +282,9 @@ class LibraryUpdateService(
.filter { pair -> pair.first.isNotEmpty() }
.doOnNext {
if (downloadNew && (
categoriesToDownload.isEmpty() ||
manga.category in categoriesToDownload
)
categoriesToDownload.isEmpty() ||
manga.category in categoriesToDownload
)
) {
downloadChapters(manga, it.first)
hasDownloads = true
@ -322,7 +322,6 @@ class LibraryUpdateService(
.map { manga -> manga.first }
}
private fun downloadChapters(manga: Manga, chapters: List<Chapter>) {
// we need to get the chapters from the db so we have chapter ids
val mangaChapters = db.getChapters(manga).executeAsBlocking()