Fixed: Queue Barfs on Null RemoteMovie

pull/3861/head
Qstick 5 years ago
parent bbadf3c7e6
commit c80a492d76

@ -6,6 +6,7 @@ using NzbDrone.Core.Download.TrackedDownloads;
using NzbDrone.Core.Languages; using NzbDrone.Core.Languages;
using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.Messaging.Events;
using NzbDrone.Core.Movies; using NzbDrone.Core.Movies;
using NzbDrone.Core.Qualities;
namespace NzbDrone.Core.Queue namespace NzbDrone.Core.Queue
{ {
@ -57,9 +58,8 @@ namespace NzbDrone.Core.Queue
{ {
var queue = new Queue var queue = new Queue
{ {
Id = HashConverter.GetHashInt31(string.Format("trackedDownload-{0}", trackedDownload.DownloadItem.DownloadId)),
Languages = trackedDownload.RemoteMovie?.ParsedMovieInfo.Languages ?? new List<Language> { Language.Unknown }, Languages = trackedDownload.RemoteMovie?.ParsedMovieInfo.Languages ?? new List<Language> { Language.Unknown },
Quality = trackedDownload.RemoteMovie.ParsedMovieInfo.Quality, Quality = trackedDownload.RemoteMovie?.ParsedMovieInfo.Quality ?? new QualityModel(Quality.Unknown),
Title = trackedDownload.DownloadItem.Title, Title = trackedDownload.DownloadItem.Title,
Size = trackedDownload.DownloadItem.TotalSize, Size = trackedDownload.DownloadItem.TotalSize,
Sizeleft = trackedDownload.DownloadItem.RemainingSize, Sizeleft = trackedDownload.DownloadItem.RemainingSize,

Loading…
Cancel
Save