Fix Cover location

This commit is contained in:
Glax 2024-08-10 21:45:47 +02:00
parent 6520aebcdf
commit 960d3f7c62

View File

@ -76,7 +76,7 @@ public partial class Server
!_parent.TryGetPublicationById(groups[1].Value, out Manga? manga) || !_parent.TryGetPublicationById(groups[1].Value, out Manga? manga) ||
manga is null) manga is null)
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.NotFound, $"Manga with ID '{groups[1].Value} could not be found.'"); return new ValueTuple<HttpStatusCode, object?>(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)) if (File.Exists(filePath))
{ {
FileStream coverStream = new(filePath, FileMode.Open); FileStream coverStream = new(filePath, FileMode.Open);