From ed79ee5d0f320e38e0af82f81ebb817496fda1ad Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 1 Sep 2023 23:41:50 +0200 Subject: [PATCH] Add Manga from Jobs to cachedManga --- Tranga/Jobs/JobBoss.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 4e924a9..ba8b3c7 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -14,6 +14,8 @@ public class JobBoss : GlobalBase this.jobs = JsonConvert.DeserializeObject>(File.ReadAllText(settings.jobsFilePath), new JobJsonConverter(this, new MangaConnectorJsonConverter(this, connectors)))!; else this.jobs = new(); + foreach (DownloadNewChapters ncJob in this.jobs.Where(job => job is DownloadNewChapters)) + cachedPublications.Add(ncJob.manga); this.mangaConnectorJobQueue = new(); }