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);