1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-17 10:45:49 +02:00

Fixed: Failing to search for recently added series when there are unknown items in the queue

This commit is contained in:
Mark McDowall 2019-01-01 15:10:21 -08:00
parent edd6c0bd4c
commit a3baab9671

View File

@ -126,7 +126,7 @@ public void Execute(MissingEpisodeSearchCommand message)
episodes = _episodeService.EpisodesWithoutFiles(pagingSpec).Records.ToList();
}
var queue = _queueService.GetQueue().Select(q => q.Episode.Id);
var queue = _queueService.GetQueue().Where(q => q.Episode != null).Select(q => q.Episode.Id);
var missing = episodes.Where(e => !queue.Contains(e.Id)).ToList();
SearchForMissingEpisodes(missing, message.Trigger == CommandTrigger.Manual);