2
0

Merge branch 'refs/heads/cuttingedge-merge-ServerV2' into Server-V2

# Conflicts:
#	Tranga/Server.cs
This commit is contained in:
Glax 2024-04-23 00:21:18 +02:00
commit cee7870aad

View File

@ -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;
} }
} }