mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 15:50:13 +01:00
Fix Cover location
This commit is contained in:
parent
6520aebcdf
commit
960d3f7c62
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user