Add Manga from Jobs to cachedManga

This commit is contained in:
glax 2023-09-01 23:41:50 +02:00
parent 28e05e549d
commit ed79ee5d0f

View File

@ -14,6 +14,8 @@ public class JobBoss : GlobalBase
this.jobs = JsonConvert.DeserializeObject<HashSet<Job>>(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();
}