mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-17 23:41:28 +00:00
Expose index report through Jellyfin plugin
This commit is contained in:
@@ -58,6 +58,24 @@ public sealed class SceneSearchController : ControllerBase
|
||||
: Ok(result);
|
||||
}
|
||||
|
||||
[HttpGet("IndexReport")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public async Task<ActionResult<SceneSearchIndexReportResponse>> 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)]
|
||||
|
||||
Reference in New Issue
Block a user