1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

fixed NotInQueueSpecification throwing exceptions when it couldn't parse an item in the queue.

This commit is contained in:
Keivan Beigi 2013-06-14 11:59:06 -07:00
parent d0d95602c6
commit 1f62194ab8

View File

@ -28,7 +28,7 @@ public bool IsSatisfiedBy(RemoteEpisode subject)
{
var downloadClient = _downloadClientProvider.GetDownloadClient();
var queue = downloadClient.GetQueue().Select(q => Parser.Parser.ParseTitle(q.Title));
var queue = downloadClient.GetQueue().Select(queueItem => Parser.Parser.ParseTitle(queueItem.Title)).Where(episodeInfo => episodeInfo != null);
return !IsInQueue(subject, queue);
}