From 2bda0f700cfe7f8df9ff62ba0b9f9d71418c3d5b Mon Sep 17 00:00:00 2001 From: vertigo235 Date: Sat, 28 Jan 2017 11:13:10 -0600 Subject: [PATCH] Update Synology Indexer For Movies (#486) --- .../Notifications/Synology/SynologyIndexer.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Synology/SynologyIndexer.cs b/src/NzbDrone.Core/Notifications/Synology/SynologyIndexer.cs index c406252fc..a05eab45c 100644 --- a/src/NzbDrone.Core/Notifications/Synology/SynologyIndexer.cs +++ b/src/NzbDrone.Core/Notifications/Synology/SynologyIndexer.cs @@ -27,15 +27,15 @@ namespace NzbDrone.Core.Notifications.Synology { if (Settings.UpdateLibrary) { - foreach (var oldFile in message.OldFiles) + foreach (var oldFile in message.OldMovieFiles) { - var fullPath = Path.Combine(message.Series.Path, oldFile.RelativePath); + var fullPath = Path.Combine(message.Movie.Path, oldFile.RelativePath); _indexerProxy.DeleteFile(fullPath); } { - var fullPath = Path.Combine(message.Series.Path, message.EpisodeFile.RelativePath); + var fullPath = Path.Combine(message.Movie.Path, message.MovieFile.RelativePath); _indexerProxy.AddFile(fullPath); } @@ -44,8 +44,12 @@ namespace NzbDrone.Core.Notifications.Synology public override void OnMovieRename(Movie movie) { + if (Settings.UpdateLibrary) + { + _indexerProxy.UpdateFolder(movie.Path); + } } - + public override void OnRename(Series series) { if (Settings.UpdateLibrary)