From c80a492d76665101aba3b3e2a5c5e7edd2a82230 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 1 Nov 2019 18:31:48 -0400 Subject: [PATCH] Fixed: Queue Barfs on Null RemoteMovie --- src/NzbDrone.Core/Queue/QueueService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Queue/QueueService.cs b/src/NzbDrone.Core/Queue/QueueService.cs index af95394bc..1387d3c5b 100644 --- a/src/NzbDrone.Core/Queue/QueueService.cs +++ b/src/NzbDrone.Core/Queue/QueueService.cs @@ -6,6 +6,7 @@ using NzbDrone.Core.Languages; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.Movies; +using NzbDrone.Core.Qualities; namespace NzbDrone.Core.Queue { @@ -57,9 +58,8 @@ private Queue MapMovie(TrackedDownload trackedDownload, Movie movie) { var queue = new Queue { - Id = HashConverter.GetHashInt31(string.Format("trackedDownload-{0}", trackedDownload.DownloadItem.DownloadId)), Languages = trackedDownload.RemoteMovie?.ParsedMovieInfo.Languages ?? new List { Language.Unknown }, - Quality = trackedDownload.RemoteMovie.ParsedMovieInfo.Quality, + Quality = trackedDownload.RemoteMovie?.ParsedMovieInfo.Quality ?? new QualityModel(Quality.Unknown), Title = trackedDownload.DownloadItem.Title, Size = trackedDownload.DownloadItem.TotalSize, Sizeleft = trackedDownload.DownloadItem.RemainingSize,