mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Allow an empty authoritative index selection
This commit is contained in:
@@ -32,11 +32,6 @@ public sealed class SceneSearchController : ControllerBase
|
||||
[ProducesResponseType(StatusCodes.Status202Accepted)]
|
||||
public async Task<ActionResult<SceneSearchIndexStatus>> Index([FromBody] SceneSearchIndexRequest request)
|
||||
{
|
||||
if (request.LibraryIds.Count == 0)
|
||||
{
|
||||
return BadRequest("Select at least one library.");
|
||||
}
|
||||
|
||||
var result = await _client.StartIndexAsync(request, HttpContext.RequestAborted).ConfigureAwait(false);
|
||||
return result is null
|
||||
? StatusCode(StatusCodes.Status503ServiceUnavailable, "Scene Search API unavailable.")
|
||||
|
||||
Reference in New Issue
Block a user