mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
New: Add DownloadClient and DownloadId to Webhook notifications
This commit is contained in:
parent
5ddc63c673
commit
cc283f64a3
@ -28,7 +28,9 @@ public override void OnGrab(GrabMessage message)
|
||||
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 @@ public override void OnDownload(DownloadMessage message)
|
||||
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 @@ public class WebhookGrabPayload : WebhookPayload
|
||||
{
|
||||
public WebhookRemoteMovie RemoteMovie { get; set; }
|
||||
public WebhookRelease Release { get; set; }
|
||||
public string DownloadClient { get; set; }
|
||||
public string DownloadId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,7 @@ public class WebhookImportPayload : WebhookPayload
|
||||
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…
Reference in New Issue
Block a user