From 5dc91095f8948cbffe82e69bafaaf34967e61747 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 26 May 2023 14:30:52 +0200 Subject: [PATCH] #28 --- Tranga/Connectors/MangaDex.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Connectors/MangaDex.cs b/Tranga/Connectors/MangaDex.cs index d8a247a..b4a05d2 100644 --- a/Tranga/Connectors/MangaDex.cs +++ b/Tranga/Connectors/MangaDex.cs @@ -284,7 +284,7 @@ public class MangaDex : Connector string fileInCache = Path.Join(settings.coverImageCache, publication.coverFileNameInCache); string newFilePath = Path.Join(publicationFolder, Path.GetFileName(fileInCache)); - if(File.Exists(fileInCache)) + if(!File.Exists(fileInCache) && !File.Exists(newFilePath)) File.Copy(fileInCache, newFilePath); }