diff --git a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs index a914bc5f2..32bc9866f 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs @@ -34,7 +34,9 @@ public override void OnGrab(GrabMessage message) QualityVersion = quality.Revision.Version, ReleaseGroup = remoteBook.ParsedBookInfo.ReleaseGroup }), - Release = new WebhookRelease(quality, remoteBook) + Release = new WebhookRelease(quality, remoteBook), + DownloadClient = message.DownloadClient, + DownloadId = message.DownloadId }; _proxy.SendWebhook(payload, Settings); @@ -47,10 +49,12 @@ public override void OnReleaseImport(BookDownloadMessage message) var payload = new WebhookImportPayload { EventType = "Download", - Author = new WebhookAuthor(message.Author), + Artist = new WebhookAuthor(message.Author), Book = new WebhookBook(message.Book), BookFiles = bookFiles.ConvertAll(x => new WebhookBookFile(x)), - IsUpgrade = message.OldFiles.Any() + IsUpgrade = message.OldFiles.Any(), + DownloadClient = message.DownloadClient, + DownloadId = message.DownloadId }; _proxy.SendWebhook(payload, Settings); diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookGrabPayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookGrabPayload.cs index 60e42a8dc..c0824a6f0 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookGrabPayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookGrabPayload.cs @@ -6,5 +6,7 @@ public class WebhookGrabPayload : WebhookPayload { public List Books { get; set; } public WebhookRelease Release { get; set; } + public string DownloadClient { get; set; } + public string DownloadId { get; set; } } } diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs index 807e0b1bf..bf9c46502 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookImportPayload.cs @@ -7,5 +7,7 @@ public class WebhookImportPayload : WebhookPayload public WebhookBook Book { get; set; } public List BookFiles { get; set; } public bool IsUpgrade { get; set; } + public string DownloadClient { get; set; } + public string DownloadId { get; set; } } }