diff --git a/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/Api/SceneSearchController.cs b/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/Api/SceneSearchController.cs index 89cf1f0..ab4c14f 100644 --- a/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/Api/SceneSearchController.cs +++ b/jellyfin-plugin/Jellyfin.Plugin.SceneSearch/Api/SceneSearchController.cs @@ -58,6 +58,24 @@ public sealed class SceneSearchController : ControllerBase : Ok(result); } + [HttpGet("IndexReport")] + [ProducesResponseType(StatusCodes.Status200OK)] + public async Task> IndexReport( + [FromQuery] string? category = null, + [FromQuery] int offset = 0, + [FromQuery] int limit = 200) + { + var result = await _client.GetIndexReportAsync( + category, + offset, + limit, + HttpContext.RequestAborted).ConfigureAwait(false); + + return result is null + ? StatusCode(StatusCodes.Status503ServiceUnavailable, "Scene Search API unavailable.") + : Ok(result); + } + [HttpPost("Caption")] [ProducesResponseType(StatusCodes.Status202Accepted)]