From ad94a4a603a839a09e13ee39070666d743f8b68e Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 12 Aug 2018 17:49:58 +0200 Subject: [PATCH] Fixed: Movies not being unmonitored when using clean library and lists. Fixes #2584, Fixes #2906 --- src/NzbDrone.Core/NetImport/NetImportSearchService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NzbDrone.Core/NetImport/NetImportSearchService.cs b/src/NzbDrone.Core/NetImport/NetImportSearchService.cs index 4f549b56c..706a82d31 100644 --- a/src/NzbDrone.Core/NetImport/NetImportSearchService.cs +++ b/src/NzbDrone.Core/NetImport/NetImportSearchService.cs @@ -175,6 +175,7 @@ namespace NzbDrone.Core.NetImport private void CleanLibrary(List movies) { + var moviesToUpdate = new List(); if (_configService.ListSyncLevel != "disabled") { var moviesInLibrary = _movieService.GetAllMovies(); @@ -200,6 +201,7 @@ namespace NzbDrone.Core.NetImport case "keepAndUnmonitor": _logger.Info("{0} was in your library, but not found in your lists --> Keeping in library but Unmonitoring it", movie); movie.Monitored = false; + moviesToUpdate.Add(movie); break; case "removeAndKeep": _logger.Info("{0} was in your library, but not found in your lists --> Removing from library (keeping files)", movie); @@ -216,6 +218,8 @@ namespace NzbDrone.Core.NetImport } } } + + _movieService.UpdateMovie(moviesToUpdate); } } }