New: Add DownloadClient and DownloadId to Webhook notifications

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick 2020-10-02 22:51:00 -04:00
parent dca8495f38
commit 807460771e
3 changed files with 10 additions and 2 deletions

View file

@ -34,7 +34,9 @@ namespace NzbDrone.Core.Notifications.Webhook
QualityVersion = quality.Revision.Version,
ReleaseGroup = remoteAlbum.ParsedAlbumInfo.ReleaseGroup
}),
Release = new WebhookRelease(quality, remoteAlbum)
Release = new WebhookRelease(quality, remoteAlbum),
DownloadClient = message.DownloadClient,
DownloadId = message.DownloadId
};
_proxy.SendWebhook(payload, Settings);
@ -56,7 +58,9 @@ namespace NzbDrone.Core.Notifications.Webhook
ReleaseGroup = x.ReleaseGroup
})).ToList(),
TrackFiles = trackFiles.ConvertAll(x => new WebhookTrackFile(x)),
IsUpgrade = message.OldFiles.Any()
IsUpgrade = message.OldFiles.Any(),
DownloadClient = message.DownloadClient,
DownloadId = message.DownloadId
};
_proxy.SendWebhook(payload, Settings);