|
|
@ -15,7 +15,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
/// Item Refresh Controller.
|
|
|
|
/// Item Refresh Controller.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("Items")]
|
|
|
|
[Route("Items")]
|
|
|
|
[Authorize(Policy = Policies.DefaultAuthorization)]
|
|
|
|
[Authorize(Policy = Policies.RequiresElevation)]
|
|
|
|
public class ItemRefreshController : BaseJellyfinApiController
|
|
|
|
public class ItemRefreshController : BaseJellyfinApiController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly ILibraryManager _libraryManager;
|
|
|
|
private readonly ILibraryManager _libraryManager;
|
|
|
@ -53,7 +53,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[Description("Refreshes metadata for an item.")]
|
|
|
|
[Description("Refreshes metadata for an item.")]
|
|
|
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
|
|
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
|
|
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
|
|
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
|
|
|
public ActionResult Post(
|
|
|
|
public ActionResult RefreshItem(
|
|
|
|
[FromRoute, Required] Guid itemId,
|
|
|
|
[FromRoute, Required] Guid itemId,
|
|
|
|
[FromQuery] MetadataRefreshMode metadataRefreshMode = MetadataRefreshMode.None,
|
|
|
|
[FromQuery] MetadataRefreshMode metadataRefreshMode = MetadataRefreshMode.None,
|
|
|
|
[FromQuery] MetadataRefreshMode imageRefreshMode = MetadataRefreshMode.None,
|
|
|
|
[FromQuery] MetadataRefreshMode imageRefreshMode = MetadataRefreshMode.None,
|
|
|
|