New: Add DownloadClient and DownloadId to Webhook notifications

pull/4415/head
Mark McDowall 5 years ago committed by Qstick
parent 5ddc63c673
commit cc283f64a3

@ -28,7 +28,9 @@ namespace NzbDrone.Core.Notifications.Webhook
EventType = "Grab",
Movie = new WebhookMovie(message.Movie),
RemoteMovie = new WebhookRemoteMovie(remoteMovie),
Release = new WebhookRelease(quality, remoteMovie)
Release = new WebhookRelease(quality, remoteMovie),
DownloadClient = message.DownloadClient,
DownloadId = message.DownloadId
};
_proxy.SendWebhook(payload, Settings);
@ -44,7 +46,9 @@ namespace NzbDrone.Core.Notifications.Webhook
Movie = new WebhookMovie(message.Movie),
RemoteMovie = new WebhookRemoteMovie(message.Movie),
MovieFile = new WebhookMovieFile(movieFile),
IsUpgrade = message.OldMovieFiles.Any()
IsUpgrade = message.OldMovieFiles.Any(),
DownloadClient = message.DownloadClient,
DownloadId = message.DownloadId
};
_proxy.SendWebhook(payload, Settings);

@ -4,5 +4,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{
public WebhookRemoteMovie RemoteMovie { get; set; }
public WebhookRelease Release { get; set; }
public string DownloadClient { get; set; }
public string DownloadId { get; set; }
}
}

@ -5,5 +5,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public WebhookRemoteMovie RemoteMovie { get; set; }
public WebhookMovieFile MovieFile { get; set; }
public bool IsUpgrade { get; set; }
public string DownloadClient { get; set; }
public string DownloadId { get; set; }
}
}

Loading…
Cancel
Save