From 3ee53b743641bf06e94be345d13aca1824808a60 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 19 Sep 2023 19:43:39 +0200 Subject: [PATCH] copy cover --- Tranga/Jobs/DownloadNewChapters.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tranga/Jobs/DownloadNewChapters.cs b/Tranga/Jobs/DownloadNewChapters.cs index a386b98..b90b30b 100644 --- a/Tranga/Jobs/DownloadNewChapters.cs +++ b/Tranga/Jobs/DownloadNewChapters.cs @@ -36,6 +36,8 @@ public class DownloadNewChapters : Job Chapter[] chapters = mangaConnector.GetNewChapters(manga, this.translatedLanguage); this.progressToken.increments = chapters.Length; List jobs = new(); + if(chapters.Any()) + mangaConnector.CopyCoverFromCacheToDownloadLocation(manga); foreach (Chapter chapter in chapters) { DownloadChapter downloadChapterJob = new(this, this.mangaConnector, chapter, parentJobId: this.id);