From 6d161bf8de5428afc8c3b07b7a70725a965c08dd Mon Sep 17 00:00:00 2001 From: Sleeps Date: Wed, 7 Oct 2026 13:53:54 +0100 Subject: [PATCH] Expose index report through Jellyfin plugin --- .../Api/SceneSearchController.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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)]