mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-23 05:57:07 -04:00
Fixed: Movies not being unmonitored when using clean library and lists.
Fixes #2584, Fixes #2906
This commit is contained in:
parent
efb4127c35
commit
ad94a4a603
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue