Download ahead (#7226)

This commit is contained in:
nzoba
2022-08-22 23:37:54 +02:00
committed by GitHub
parent 2e81e1b7d8
commit f207e87722
6 changed files with 107 additions and 11 deletions

View File

@@ -57,8 +57,8 @@ fun DomainManga.shouldDownloadNewChapters(dbCategories: List<Long>, preferences:
val categories = dbCategories.ifEmpty { listOf(0L) }
// Boolean to determine if user wants to automatically download new chapters.
val downloadNewChapter = preferences.downloadNewChapter().get()
if (!downloadNewChapter) return false
val downloadNewChapters = preferences.downloadNewChapters().get()
if (!downloadNewChapters) return false
val includedCategories = preferences.downloadNewChapterCategories().get().map { it.toLong() }
val excludedCategories = preferences.downloadNewChapterCategoriesExclude().get().map { it.toLong() }