mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-23 16:26:02 +00:00
Fixed: Failing to search for recently added series when there are unknown items in the queue
This commit is contained in:
parent
edd6c0bd4c
commit
a3baab9671
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ namespace NzbDrone.Core.IndexerSearch
|
||||||
episodes = _episodeService.EpisodesWithoutFiles(pagingSpec).Records.ToList();
|
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();
|
var missing = episodes.Where(e => !queue.Contains(e.Id)).ToList();
|
||||||
|
|
||||||
SearchForMissingEpisodes(missing, message.Trigger == CommandTrigger.Manual);
|
SearchForMissingEpisodes(missing, message.Trigger == CommandTrigger.Manual);
|
||||||
|
|
Loading…
Reference in a new issue