mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 18:59:15 +01:00
Fix category exclude not working in DownloadManager (#7641)
This commit is contained in:
parent
7336714306
commit
56028aff55
@ -361,9 +361,9 @@ class DownloadManager(
|
|||||||
|
|
||||||
private fun getChaptersToDelete(chapters: List<Chapter>, manga: Manga): List<Chapter> {
|
private fun getChaptersToDelete(chapters: List<Chapter>, manga: Manga): List<Chapter> {
|
||||||
// Retrieve the categories that are set to exclude from being deleted on read
|
// Retrieve the categories that are set to exclude from being deleted on read
|
||||||
val categoriesToExclude = preferences.removeExcludeCategories().get().map(String::toInt)
|
val categoriesToExclude = preferences.removeExcludeCategories().get().map(String::toLong)
|
||||||
|
|
||||||
val categoriesForManga = runBlocking { getCategories.await(manga.id!!) }
|
val categoriesForManga = runBlocking { getCategories.await(manga.id) }
|
||||||
.map { it.id }
|
.map { it.id }
|
||||||
.takeUnless { it.isEmpty() }
|
.takeUnless { it.isEmpty() }
|
||||||
?: listOf(0)
|
?: listOf(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user