Fix: Net import optimization

This commit is contained in:
geogolem 2019-11-15 19:20:13 -05:00 committed by Devin Buhl
parent a06b044342
commit 15b63778e5
1 changed files with 6 additions and 0 deletions

View File

@ -125,6 +125,12 @@ namespace NzbDrone.Core.NetImport
CleanLibrary(listedMovies); CleanLibrary(listedMovies);
} }
listedMovies = listedMovies.Where(x => !_movieService.MovieExists(x)).ToList();
if (listedMovies.Any())
{
_logger.Info($"Found {listedMovies.Count()} movies on your auto enabled lists not in your library");
}
var importExclusions = new List<string>(); var importExclusions = new List<string>();
var moviesToAdd = new List<Movie>(); var moviesToAdd = new List<Movie>();