diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index e3434d4d5..72392cff1 100755 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -323,8 +323,8 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Radarr_Movie_ImdbId", movie.MovieMetadata.Value.ImdbId ?? string.Empty); environmentVariables.Add("Radarr_Movie_TmdbId", movie.MovieMetadata.Value.TmdbId.ToString()); environmentVariables.Add("Radarr_Movie_Overview", movie.MovieMetadata.Value.Overview); - environmentVariables.Add("Radarr_Download_Client", message.DownloadClientName ?? string.Empty); - environmentVariables.Add("Radarr_Download_Client_Type", message.DownloadClientType ?? string.Empty); + environmentVariables.Add("Radarr_Download_Client", message.DownloadClientInfo?.Name ?? string.Empty); + environmentVariables.Add("Radarr_Download_Client_Type", message.DownloadClientInfo?.Type ?? string.Empty); environmentVariables.Add("Radarr_Download_Id", message.DownloadId ?? string.Empty); environmentVariables.Add("Radarr_Download_Size", message.TrackedDownload.DownloadItem.TotalSize.ToString()); environmentVariables.Add("Radarr_Download_Title", message.TrackedDownload.DownloadItem.Title); diff --git a/src/NzbDrone.Core/Notifications/ManualInteractionRequiredMessage.cs b/src/NzbDrone.Core/Notifications/ManualInteractionRequiredMessage.cs index 704d88b1d..866fc9abc 100644 --- a/src/NzbDrone.Core/Notifications/ManualInteractionRequiredMessage.cs +++ b/src/NzbDrone.Core/Notifications/ManualInteractionRequiredMessage.cs @@ -1,3 +1,4 @@ +using NzbDrone.Core.Download; using NzbDrone.Core.Download.TrackedDownloads; using NzbDrone.Core.Movies; using NzbDrone.Core.Parser.Model; @@ -12,8 +13,7 @@ namespace NzbDrone.Core.Notifications public RemoteMovie RemoteMovie { get; set; } public TrackedDownload TrackedDownload { get; set; } public QualityModel Quality { get; set; } - public string DownloadClientType { get; set; } - public string DownloadClientName { get; set; } + public DownloadClientItemClientInfo DownloadClientInfo { get; set; } public string DownloadId { get; set; } public GrabbedReleaseInfo Release { get; set; } diff --git a/src/NzbDrone.Core/Notifications/NotificationService.cs b/src/NzbDrone.Core/Notifications/NotificationService.cs index 720fafc6c..cf2817b48 100644 --- a/src/NzbDrone.Core/Notifications/NotificationService.cs +++ b/src/NzbDrone.Core/Notifications/NotificationService.cs @@ -261,8 +261,7 @@ namespace NzbDrone.Core.Notifications Quality = message.RemoteMovie.ParsedMovieInfo.Quality, RemoteMovie = message.RemoteMovie, TrackedDownload = message.TrackedDownload, - DownloadClientType = message.TrackedDownload.DownloadItem.DownloadClientInfo.Type, - DownloadClientName = message.TrackedDownload.DownloadItem.DownloadClientInfo.Name, + DownloadClientInfo = message.TrackedDownload.DownloadItem.DownloadClientInfo, DownloadId = message.TrackedDownload.DownloadItem.DownloadId, Release = message.Release }; diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs index 1e5b2ae2a..b5442c24d 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -209,8 +209,8 @@ namespace NzbDrone.Core.Notifications.Webhook Tags = GetTagLabels(message.Movie) }, DownloadInfo = new WebhookDownloadClientItem(quality, message.TrackedDownload.DownloadItem), - DownloadClient = message.DownloadClientName, - DownloadClientType = message.DownloadClientType, + DownloadClient = message.DownloadClientInfo?.Name, + DownloadClientType = message.DownloadClientInfo?.Type, DownloadId = message.DownloadId, CustomFormatInfo = new WebhookCustomFormatInfo(remoteMovie.CustomFormats, remoteMovie.CustomFormatScore), Release = new WebhookGrabbedRelease(message.Release)