1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

New: Add release info to webhook/custom script import events

Closes #5503
This commit is contained in:
Mark McDowall
2023-04-02 13:26:49 -07:00
parent f59276881a
commit f4130d96e5
12 changed files with 119 additions and 42 deletions
@@ -36,7 +36,7 @@ namespace NzbDrone.Core.Notifications.Webhook
DownloadClient = message.DownloadClientName,
DownloadClientType = message.DownloadClientType,
DownloadId = message.DownloadId,
CustomFormatInfo = new WebhookCustomFormatInfo(remoteEpisode.CustomFormats, remoteEpisode.CustomFormatScore)
CustomFormatInfo = new WebhookCustomFormatInfo(remoteEpisode.CustomFormats, remoteEpisode.CustomFormatScore),
};
}
@@ -52,6 +52,7 @@ namespace NzbDrone.Core.Notifications.Webhook
Series = new WebhookSeries(message.Series),
Episodes = episodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)),
EpisodeFile = new WebhookEpisodeFile(episodeFile),
Release = new WebhookGrabbedRelease(message.Release),
IsUpgrade = message.OldFiles.Any(),
DownloadClient = message.DownloadClientInfo?.Name,
DownloadClientType = message.DownloadClientInfo?.Type,