2
0

#28 why was there a '!'

This commit is contained in:
glax 2023-05-26 14:43:47 +02:00
parent eef0955009
commit f9f802155d

View File

@ -284,7 +284,7 @@ public class MangaDex : Connector
string fileInCache = Path.Join(settings.coverImageCache, publication.coverFileNameInCache); string fileInCache = Path.Join(settings.coverImageCache, publication.coverFileNameInCache);
string newFilePath = Path.Join(publicationFolder, "cover.", Path.GetFileName(fileInCache).Split('.')[^1]); string newFilePath = Path.Join(publicationFolder, "cover.", Path.GetFileName(fileInCache).Split('.')[^1]);
if(!File.Exists(fileInCache) && !File.Exists(newFilePath)) if(File.Exists(fileInCache) && !File.Exists(newFilePath))
File.Copy(fileInCache, newFilePath); File.Copy(fileInCache, newFilePath);
logger?.WriteLine(this.GetType().ToString(), $"Done cloning cover {publication.sortName}"); logger?.WriteLine(this.GetType().ToString(), $"Done cloning cover {publication.sortName}");