Corrected check for if cover exists
This commit is contained in:
parent
e3211b95e2
commit
57f1e037ef
@ -175,8 +175,8 @@ public abstract class MangaConnector : GlobalBase
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string fileInCache = manga.coverFileNameInCache ?? Path.Join(settings.coverImageCache, manga.coverFileNameInCache);
|
string? fileInCache = manga.coverFileNameInCache;
|
||||||
if (!File.Exists(fileInCache))
|
if (fileInCache is null || !File.Exists(fileInCache))
|
||||||
{
|
{
|
||||||
Log($"Cloning cover failed: File missing {fileInCache}.");
|
Log($"Cloning cover failed: File missing {fileInCache}.");
|
||||||
if (retries > 0 && manga.coverUrl is not null)
|
if (retries > 0 && manga.coverUrl is not null)
|
||||||
|
Loading…
Reference in New Issue
Block a user