mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Merge branch 'develop' of https://github.com/Radarr/Radarr into develop
This commit is contained in:
commit
330ae38ec2
@ -44,14 +44,14 @@ public void Handle(TrackedDownloadRefreshedEvent message)
|
||||
|
||||
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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user