aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ItemLookupController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-21 09:35:38 -0600
committercrobibero <cody@robibe.ro>2020-06-21 09:35:38 -0600
commitcffba00f51ef57ba2334b4c30431c028b2ecbe1a (patch)
treef8dd701b5c00e932dad9d34ba0a48d0e6c6dcd67 /Jellyfin.Api/Controllers/ItemLookupController.cs
parentce37c4074937e15e6cdd23f0f6e5016502ac2cee (diff)
Fix response code
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemLookupController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ItemLookupController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Jellyfin.Api/Controllers/ItemLookupController.cs b/Jellyfin.Api/Controllers/ItemLookupController.cs
index e474f2b23..75cba450f 100644
--- a/Jellyfin.Api/Controllers/ItemLookupController.cs
+++ b/Jellyfin.Api/Controllers/ItemLookupController.cs
@@ -286,10 +286,10 @@ namespace Jellyfin.Api.Controllers
/// <param name="itemId">Item id.</param>
/// <param name="searchResult">The remote search result.</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>
/// 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>
[HttpPost("/Items/RemoteSearch/Apply/{id}")]
[Authorize(Policy = Policies.RequiresElevation)]
@@ -318,7 +318,7 @@ namespace Jellyfin.Api.Controllers
SearchResult = searchResult
}, CancellationToken.None).ConfigureAwait(false);
- return Ok();
+ return NoContent();
}
/// <summary>
@@ -361,4 +361,4 @@ namespace Jellyfin.Api.Controllers
private string GetFullCachePath(string filename)
=> Path.Combine(_appPaths.CachePath, "remote-images", filename.Substring(0, 1), filename);
}
-} \ No newline at end of file
+}