Fix response code
This commit is contained in:
parent
ce37c40749
commit
cffba00f51
|
@ -286,10 +286,10 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <param name="itemId">Item id.</param>
|
/// <param name="itemId">Item id.</param>
|
||||||
/// <param name="searchResult">The remote search result.</param>
|
/// <param name="searchResult">The remote search result.</param>
|
||||||
/// <param name="replaceAllImages">Optional. Whether or not to replace all images. Default: True.</param>
|
/// <param name="replaceAllImages">Optional. Whether or not to replace all images. Default: True.</param>
|
||||||
/// <response code="200">Item metadata refreshed.</response>
|
/// <response code="204">Item metadata refreshed.</response>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// A <see cref="Task" /> that represents the asynchronous operation to get the remote search results.
|
/// A <see cref="Task" /> that represents the asynchronous operation to get the remote search results.
|
||||||
/// The task result contains an <see cref="OkResult"/>.
|
/// The task result contains an <see cref="NoContentResult"/>.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[HttpPost("/Items/RemoteSearch/Apply/{id}")]
|
[HttpPost("/Items/RemoteSearch/Apply/{id}")]
|
||||||
[Authorize(Policy = Policies.RequiresElevation)]
|
[Authorize(Policy = Policies.RequiresElevation)]
|
||||||
|
@ -318,7 +318,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
SearchResult = searchResult
|
SearchResult = searchResult
|
||||||
}, CancellationToken.None).ConfigureAwait(false);
|
}, CancellationToken.None).ConfigureAwait(false);
|
||||||
|
|
||||||
return Ok();
|
return NoContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -361,4 +361,4 @@ namespace Jellyfin.Api.Controllers
|
||||||
private string GetFullCachePath(string filename)
|
private string GetFullCachePath(string filename)
|
||||||
=> Path.Combine(_appPaths.CachePath, "remote-images", filename.Substring(0, 1), filename);
|
=> Path.Combine(_appPaths.CachePath, "remote-images", filename.Substring(0, 1), filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user