File Dimension API (#1690)
* Implemented an api for getting file dimensions for a given chapter. This is for CDisplayEx integration. This might be usable in Double Renderer. * Added the cached filename for new API
This commit is contained in:
parent
0961cac65a
commit
e6b18457f2
12 changed files with 122 additions and 49 deletions
|
|
@ -824,7 +824,7 @@ public class OpdsController : BaseApiController
|
|||
|
||||
try
|
||||
{
|
||||
var path = _cacheService.GetCachedPagePath(chapter, pageNumber);
|
||||
var path = _cacheService.GetCachedPagePath(chapter.Id, pageNumber);
|
||||
if (string.IsNullOrEmpty(path) || !System.IO.File.Exists(path)) return BadRequest($"No such image for page {pageNumber}");
|
||||
|
||||
var content = await _directoryService.ReadFileAsync(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue