From 3283dd72903f4e891bb0662407c0a13837664b64 Mon Sep 17 00:00:00 2001 From: Glax Date: Fri, 16 May 2025 22:00:17 +0200 Subject: [PATCH] DownloadAvailableChaptersJob.cs only create DownloadSingleChapterJobs for Chapters that have not been downloaded --- API/Schema/Jobs/DownloadAvailableChaptersJob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Schema/Jobs/DownloadAvailableChaptersJob.cs b/API/Schema/Jobs/DownloadAvailableChaptersJob.cs index 961cb3a..e4d2eed 100644 --- a/API/Schema/Jobs/DownloadAvailableChaptersJob.cs +++ b/API/Schema/Jobs/DownloadAvailableChaptersJob.cs @@ -36,6 +36,6 @@ public class DownloadAvailableChaptersJob : Job protected override IEnumerable 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)); } } \ No newline at end of file