mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-09 05:40:53 +02:00
Fixed: Cutoff unmet episode search failing when there are unknown items in the queue
This commit is contained in:
parent
c6c998dc9f
commit
08b65a954d
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ public void Execute(CutoffUnmetEpisodeSearchCommand message)
|
|||
|
||||
var episodes = _episodeCutoffService.EpisodesWhereCutoffUnmet(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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue