mirror of
https://github.com/Radarr/Radarr
synced 2025-01-31 11:53:06 +00:00
parent
e6479e9a53
commit
3b6e20908e
1 changed files with 11 additions and 4 deletions
|
@ -376,11 +376,18 @@ public Movie GetMovieInfo(string imdbId)
|
|||
public List<Movie> DiscoverNewMovies(string action)
|
||||
{
|
||||
var allMovies = _movieService.GetAllMovies();
|
||||
var allExclusions = _exclusionService.GetAllExclusions();
|
||||
string allIds = string.Join(",", allMovies.Select(m => m.TmdbId));
|
||||
string ignoredIds = string.Join(",", allExclusions.Select(ex => ex.TmdbId));
|
||||
|
||||
List<MovieResult> results = new List<MovieResult>();
|
||||
if (!allMovies.Any())
|
||||
{
|
||||
_logger.Debug("Skipping discover, no movies in library");
|
||||
return new List<Movie>();
|
||||
}
|
||||
|
||||
var allExclusions = _exclusionService.GetAllExclusions();
|
||||
var allIds = string.Join(",", allMovies.Select(m => m.TmdbId));
|
||||
var ignoredIds = string.Join(",", allExclusions.Select(ex => ex.TmdbId));
|
||||
|
||||
var results = new List<MovieResult>();
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue