1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fixed: Missing Movie Search from Index Null Ref

This commit is contained in:
Qstick 2019-10-21 09:43:39 -04:00 committed by GitHub
parent 136432d098
commit 3c380954ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ public void Execute(MissingMoviesSearchCommand message)
pagingSpec.FilterExpressions.Add(v => v.Monitored == true);
List<Movie> movies = _movieService.MoviesWithoutFiles(pagingSpec).Records.ToList();
var queue = _queueService.GetQueue().Select(q => q.Movie.Id);
var queue = _queueService.GetQueue().Where(q => q.Movie != null).Select(q => q.Movie.Id);
var missing = movies.Where(e => !queue.Contains(e.Id)).ToList();
SearchForMissingMovies(missing, message.Trigger == CommandTrigger.Manual);