Refactored volume to contain pages and removed /reader/info API endpoint.
This commit is contained in:
parent
c2b41b774a
commit
28ce2bbba1
9 changed files with 571 additions and 18 deletions
|
|
@ -204,6 +204,8 @@ namespace API.Services
|
|||
var firstFile = volume.Files.OrderBy(x => x.Chapter).FirstOrDefault()?.FilePath;
|
||||
volume.CoverImage = ImageProvider.GetCoverImage(firstFile, true);
|
||||
}
|
||||
|
||||
volume.Pages = volume.Files.Sum(x => x.NumberOfPages);
|
||||
}
|
||||
|
||||
return volumes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue