From 57f1e037efa6228ed59b4f0fdd0d9862efcf8f62 Mon Sep 17 00:00:00 2001 From: Glax Date: Sun, 26 May 2024 22:45:39 +0200 Subject: [PATCH] Corrected check for if cover exists --- Tranga/MangaConnectors/MangaConnector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/MangaConnectors/MangaConnector.cs b/Tranga/MangaConnectors/MangaConnector.cs index 7038715..a1de35b 100644 --- a/Tranga/MangaConnectors/MangaConnector.cs +++ b/Tranga/MangaConnectors/MangaConnector.cs @@ -175,8 +175,8 @@ public abstract class MangaConnector : GlobalBase return; } - string fileInCache = manga.coverFileNameInCache ?? Path.Join(settings.coverImageCache, manga.coverFileNameInCache); - if (!File.Exists(fileInCache)) + string? fileInCache = manga.coverFileNameInCache; + if (fileInCache is null || !File.Exists(fileInCache)) { Log($"Cloning cover failed: File missing {fileInCache}."); if (retries > 0 && manga.coverUrl is not null)