Fixed: Movies not being unmonitored when using clean library and lists.

Fixes #2584, Fixes #2906
Leonardo Galli 6 years ago
parent efb4127c35
commit ad94a4a603

@ -175,6 +175,7 @@ namespace NzbDrone.Core.NetImport
private void CleanLibrary(List<Movie> movies)
{
var moviesToUpdate = new List<Movie>();
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);
}
}
}

Loading…
Cancel
Save