From 787ad44323c211d90499c2f40ae3434540cba321 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sat, 13 Mar 2021 15:03:06 +0100 Subject: Merge pull request #5500 from crobibero/api-integration-fix Fix third party integration (cherry picked from commit 7a988ef77ddcd8450c10f145178e82a3f0f50883) Signed-off-by: Joshua M. Boniface --- Jellyfin.Api/Controllers/LibraryController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Jellyfin.Api/Controllers/LibraryController.cs') diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs index 415dc0ed72..3da910f2fc 100644 --- a/Jellyfin.Api/Controllers/LibraryController.cs +++ b/Jellyfin.Api/Controllers/LibraryController.cs @@ -591,15 +591,15 @@ namespace Jellyfin.Api.Controllers /// /// Reports that new movies have been added by an external source. /// - /// A list of updated media paths. + /// The update paths. /// Report success. /// A . [HttpPost("Library/Media/Updated")] [Authorize(Policy = Policies.DefaultAuthorization)] [ProducesResponseType(StatusCodes.Status204NoContent)] - public ActionResult PostUpdatedMedia([FromBody, Required] MediaUpdateInfoDto[] updates) + public ActionResult PostUpdatedMedia([FromBody, Required] MediaUpdateInfoDto dto) { - foreach (var item in updates) + foreach (var item in dto.Updates) { _libraryMonitor.ReportFileSystemChanged(item.Path); } -- cgit v1.2.3