From d80980512e1cd6a95161ba28c24e578f3b2b68a1 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 26 May 2023 14:47:13 +0200 Subject: [PATCH] #28 is a pain in the buttcheeks --- Tranga/Connectors/MangaDex.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/Connectors/MangaDex.cs b/Tranga/Connectors/MangaDex.cs index 2aeaf26..4bdaffe 100644 --- a/Tranga/Connectors/MangaDex.cs +++ b/Tranga/Connectors/MangaDex.cs @@ -284,8 +284,8 @@ public class MangaDex : Connector string fileInCache = Path.Join(settings.coverImageCache, publication.coverFileNameInCache); string newFilePath = Path.Join(publicationFolder, "cover.", Path.GetFileName(fileInCache).Split('.')[^1]); - if(File.Exists(fileInCache) && !File.Exists(newFilePath)) - File.Copy(fileInCache, newFilePath); + logger?.WriteLine(this.GetType().ToString(), $"Cloning cover {fileInCache} -> {newFilePath}"); + File.Copy(fileInCache, newFilePath, true); logger?.WriteLine(this.GetType().ToString(), $"Done cloning cover {publication.sortName}"); }