Corrected check for if cover exists

This commit is contained in:
Glax 2024-05-26 22:45:39 +02:00
parent e3211b95e2
commit 57f1e037ef

View File

@ -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)