New: Add Editions to Webhook Payloads

This commit is contained in:
Qstick
2023-02-25 12:51:23 -06:00
parent d93329a3fd
commit 22781b62e6
3 changed files with 26 additions and 12 deletions
@@ -28,13 +28,7 @@ namespace NzbDrone.Core.Notifications.Webhook
EventType = WebhookEventType.Grab,
InstanceName = _configFileProvider.InstanceName,
Author = new WebhookAuthor(message.Author),
Books = remoteBook.Books.ConvertAll(x => new WebhookBook(x)
{
// TODO: Stop passing these parameters inside an book v3
Quality = quality.Quality.Name,
QualityVersion = quality.Revision.Version,
ReleaseGroup = remoteBook.ParsedBookInfo.ReleaseGroup
}),
Books = remoteBook.Books.ConvertAll(x => new WebhookBook(x)),
Release = new WebhookRelease(quality, remoteBook),
DownloadClient = message.DownloadClientName,
DownloadClientType = message.DownloadClientType,