mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix downloading filtered out chapters (#1010)
This commit is contained in:
parent
a9faeacc6f
commit
7695f0b51d
1 changed files with 5 additions and 3 deletions
|
@ -32,7 +32,7 @@ fun syncChaptersWithSource(
|
|||
}
|
||||
|
||||
val downloadManager: DownloadManager = Injekt.get()
|
||||
|
||||
val chapterFilter: ChapterFilter = Injekt.get()
|
||||
// Chapters from db.
|
||||
val dbChapters = db.getChapters(manga).executeAsBlocking()
|
||||
|
||||
|
@ -161,8 +161,10 @@ fun syncChaptersWithSource(
|
|||
} else manga.last_update = newestChapterDate
|
||||
db.updateLastUpdated(manga).executeAsBlocking()
|
||||
}
|
||||
|
||||
return Pair(toAdd.subtract(readded).toList(), toDelete - readded)
|
||||
return Pair(
|
||||
chapterFilter.filterChaptersByScanlators(toAdd.subtract(readded).toList(), manga),
|
||||
toDelete - readded
|
||||
)
|
||||
}
|
||||
|
||||
// checks if the chapter in db needs updated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue