ImageCache could never find files, because they were not in the expected location.
This commit is contained in:
parent
79e61a62c7
commit
51a26a3cba
@ -175,7 +175,7 @@ public abstract class MangaConnector : GlobalBase
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string fileInCache = Path.Join(settings.coverImageCache, manga.coverFileNameInCache);
|
string fileInCache = manga.coverFileNameInCache ?? Path.Join(settings.coverImageCache, manga.coverFileNameInCache);
|
||||||
if (!File.Exists(fileInCache))
|
if (!File.Exists(fileInCache))
|
||||||
{
|
{
|
||||||
Log($"Cloning cover failed: File missing {fileInCache}.");
|
Log($"Cloning cover failed: File missing {fileInCache}.");
|
||||||
@ -299,6 +299,6 @@ public abstract class MangaConnector : GlobalBase
|
|||||||
coverResult.result.CopyTo(ms);
|
coverResult.result.CopyTo(ms);
|
||||||
File.WriteAllBytes(saveImagePath, ms.ToArray());
|
File.WriteAllBytes(saveImagePath, ms.ToArray());
|
||||||
Log($"Saving cover to {saveImagePath}");
|
Log($"Saving cover to {saveImagePath}");
|
||||||
return filename;
|
return saveImagePath;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -122,7 +122,7 @@ public class Server : GlobalBase
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
string filePath = settings.GetFullCoverPath((Manga)manga!);
|
string filePath = manga?.coverFileNameInCache ?? "";
|
||||||
if (File.Exists(filePath))
|
if (File.Exists(filePath))
|
||||||
{
|
{
|
||||||
FileStream coverStream = new(filePath, FileMode.Open);
|
FileStream coverStream = new(filePath, FileMode.Open);
|
||||||
|
Loading…
Reference in New Issue
Block a user