Refactored volume to contain pages and removed /reader/info API endpoint.

This commit is contained in:
Joseph Milazzo 2021-01-11 17:36:11 -06:00
parent c2b41b774a
commit 28ce2bbba1
9 changed files with 571 additions and 18 deletions

View file

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