From 1dcfecd66f165c9fd6b0763da44a6ed73ea5bab6 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 29 Jun 2024 19:14:37 +0200 Subject: [PATCH] Create CoverImageCache when saving coverimages. --- Tranga/MangaConnectors/MangaConnector.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga/MangaConnectors/MangaConnector.cs b/Tranga/MangaConnectors/MangaConnector.cs index 630489b..6dbcb45 100644 --- a/Tranga/MangaConnectors/MangaConnector.cs +++ b/Tranga/MangaConnectors/MangaConnector.cs @@ -299,6 +299,7 @@ public abstract class MangaConnector : GlobalBase RequestResult coverResult = downloadClient.MakeRequest(url, requestType); using MemoryStream ms = new(); coverResult.result.CopyTo(ms); + Directory.CreateDirectory(settings.coverImageCache); File.WriteAllBytes(saveImagePath, ms.ToArray()); Log($"Saving cover to {saveImagePath}"); return saveImagePath;