DownloadAvailableChaptersJob.cs only create DownloadSingleChapterJobs for Chapters that have not been downloaded

This commit is contained in:
Glax 2025-05-16 22:00:17 +02:00
parent 937c5cb7a7
commit 3283dd7290

View File

@ -36,6 +36,6 @@ public class DownloadAvailableChaptersJob : Job
protected override IEnumerable<Job> RunInternal(PgsqlContext context) protected override IEnumerable<Job> RunInternal(PgsqlContext context)
{ {
return Manga.Chapters.Select(chapter => new DownloadSingleChapterJob(chapter, this)); return Manga.Chapters.Where(c => c.Downloaded == false).Select(chapter => new DownloadSingleChapterJob(chapter, this));
} }
} }