mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
parent
f5b9fb047a
commit
b62f0694bc
1 changed files with 3 additions and 3 deletions
|
@ -222,10 +222,10 @@ class LibraryUpdateService(
|
|||
|
||||
val categoriesToExclude =
|
||||
preferences.libraryUpdateCategoriesExclude().get().map(String::toInt)
|
||||
val listToExclude = if (categoriesToExclude.isNotEmpty()) {
|
||||
libraryManga.filter { it.category in categoriesToExclude }
|
||||
val listToExclude = if (categoriesToExclude.isNotEmpty() && categoryId == -1) {
|
||||
libraryManga.filter { it.category in categoriesToExclude }.toSet()
|
||||
} else {
|
||||
emptyList()
|
||||
emptySet()
|
||||
}
|
||||
|
||||
return listToUpdate.minus(listToExclude)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue