From 15b63778e579e6bbeb32ba212d021192246fbbfc Mon Sep 17 00:00:00 2001 From: geogolem <55031547+geogolem@users.noreply.github.com> Date: Fri, 15 Nov 2019 19:20:13 -0500 Subject: [PATCH] Fix: Net import optimization --- src/NzbDrone.Core/NetImport/NetImportSearchService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/NetImport/NetImportSearchService.cs b/src/NzbDrone.Core/NetImport/NetImportSearchService.cs index 2616e4a33..b01dc8d6e 100644 --- a/src/NzbDrone.Core/NetImport/NetImportSearchService.cs +++ b/src/NzbDrone.Core/NetImport/NetImportSearchService.cs @@ -125,6 +125,12 @@ public void Execute(NetImportSyncCommand message) 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(); var moviesToAdd = new List();