diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index 0a2cfd021..cb25c5dd8 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -376,11 +376,18 @@ namespace NzbDrone.Core.MetadataSource.SkyHook public List DiscoverNewMovies(string action) { var allMovies = _movieService.GetAllMovies(); + + if (!allMovies.Any()) + { + _logger.Debug("Skipping discover, no movies in library"); + return new List(); + } + var allExclusions = _exclusionService.GetAllExclusions(); - string allIds = string.Join(",", allMovies.Select(m => m.TmdbId)); - string ignoredIds = string.Join(",", allExclusions.Select(ex => ex.TmdbId)); + var allIds = string.Join(",", allMovies.Select(m => m.TmdbId)); + var ignoredIds = string.Join(",", allExclusions.Select(ex => ex.TmdbId)); - List results = new List(); + var results = new List(); try {