Skip to content

Commit

Permalink
Group download chapter logic inside the interactor GetChaptersToDownload
Browse files Browse the repository at this point in the history
  • Loading branch information
shabnix committed Aug 20, 2024
1 parent 959160a commit c3baa97
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class GetChaptersToDownload(
return emptyList()
}

return if (downloadPreferences.downloadUnreadChaptersOnly().get()) {
val downloadUnreadChapters = downloadPreferences.downloadUnreadChaptersOnly().get()
return if (downloadUnreadChapters) {
newChapters.filter { isUnreadChapter(manga.id, it.chapterNumber) }
} else {
newChapters
Expand Down

0 comments on commit c3baa97

Please sign in to comment.