mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-16 21:15:33 -04:00
New: Add DownloadClient and DownloadId to Webhook notifications
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user