mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Expose plugin library selection action
This commit is contained in:
@@ -28,6 +28,16 @@ public sealed class SceneSearchController : ControllerBase
|
||||
: Ok(result);
|
||||
}
|
||||
|
||||
[HttpPost("LibrarySelection")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public async Task<ActionResult<Dictionary<string, object>>> LibrarySelection([FromBody] SceneSearchIndexRequest request)
|
||||
{
|
||||
var result = await _client.ApplyLibrarySelectionAsync(request, HttpContext.RequestAborted).ConfigureAwait(false);
|
||||
return result is null
|
||||
? StatusCode(StatusCodes.Status503ServiceUnavailable, "Scene Search API unavailable.")
|
||||
: Ok(result);
|
||||
}
|
||||
|
||||
[HttpPost("Index")]
|
||||
[ProducesResponseType(StatusCodes.Status202Accepted)]
|
||||
public async Task<ActionResult<SceneSearchIndexStatus>> Index([FromBody] SceneSearchIndexRequest request)
|
||||
|
||||
Reference in New Issue
Block a user