From 960d3f7c62f9fa77e16012eb0ceaa31fdd1d279d Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 10 Aug 2024 21:45:47 +0200 Subject: [PATCH] Fix Cover location --- Tranga/Server/v2Manga.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Server/v2Manga.cs b/Tranga/Server/v2Manga.cs index 44ff843..502b88f 100644 --- a/Tranga/Server/v2Manga.cs +++ b/Tranga/Server/v2Manga.cs @@ -76,7 +76,7 @@ public partial class Server !_parent.TryGetPublicationById(groups[1].Value, out Manga? manga) || manga is null) return new ValueTuple(HttpStatusCode.NotFound, $"Manga with ID '{groups[1].Value} could not be found.'"); - string filePath = settings.GetFullCoverPath((Manga)manga!); + string filePath = manga.Value.coverFileNameInCache!; if (File.Exists(filePath)) { FileStream coverStream = new(filePath, FileMode.Open);