Merge branch 'develop' of https://github.com/Radarr/Radarr into develop

This commit is contained in:
Leonardo Galli 2017-01-13 19:03:03 +01:00
commit 330ae38ec2
1 changed files with 2 additions and 2 deletions

View File

@ -44,14 +44,14 @@ namespace NzbDrone.Core.Queue
private IEnumerable<Queue> MapQueue(TrackedDownload trackedDownload) private IEnumerable<Queue> MapQueue(TrackedDownload trackedDownload)
{ {
if (trackedDownload.RemoteEpisode.Episodes != null && trackedDownload.RemoteEpisode.Episodes.Any()) if (trackedDownload.RemoteEpisode != null && trackedDownload.RemoteEpisode.Episodes != null && trackedDownload.RemoteEpisode.Episodes.Any())
{ {
foreach (var episode in trackedDownload.RemoteEpisode.Episodes) foreach (var episode in trackedDownload.RemoteEpisode.Episodes)
{ {
yield return MapEpisode(trackedDownload, episode); yield return MapEpisode(trackedDownload, episode);
} }
} }
else if (trackedDownload.RemoteMovie.Movie != null) else if (trackedDownload.RemoteMovie != null && trackedDownload.RemoteMovie.Movie != null)
{ {
yield return MapMovie(trackedDownload, trackedDownload.RemoteMovie.Movie); yield return MapMovie(trackedDownload, trackedDownload.RemoteMovie.Movie);
} }