mirror of
https://github.com/mihonapp/mihon.git
synced 2025-08-20 13:31:32 +02:00
Compare commits
2 Commits
5e3b91de27
...
cfff184a80
Author | SHA1 | Date | |
---|---|---|---|
|
cfff184a80 | ||
|
21bb71d7f3 |
@@ -27,7 +27,8 @@ class FilterChaptersForDownload(
|
||||
* @return A list of chapters that should be downloaded
|
||||
*/
|
||||
suspend fun await(manga: Manga, newChapters: List<Chapter>): List<Chapter> {
|
||||
if (newChapters.isEmpty() ||
|
||||
if (
|
||||
newChapters.isEmpty() ||
|
||||
!downloadPreferences.downloadNewChapters().get() ||
|
||||
!manga.shouldDownloadNewChapters()
|
||||
) {
|
||||
@@ -42,7 +43,7 @@ class FilterChaptersForDownload(
|
||||
.map { it.chapterNumber }
|
||||
.toSet()
|
||||
|
||||
return newChapters.filterNot { it.chapterNumber in readChapterNumbers }
|
||||
return newChapters.filterNot { it.chapterNumber in readChapterNumbers }
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user