New: Add DownloadClient and DownloadId to Webhook notifications

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/1689/head
Qstick 4 years ago
parent dca8495f38
commit 807460771e

@ -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);

@ -6,5 +6,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{
public List<WebhookAlbum> Albums { get; set; }
public WebhookRelease Release { get; set; }
public string DownloadClient { get; set; }
public string DownloadId { get; set; }
}
}

@ -7,5 +7,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public List<WebhookTrack> Tracks { get; set; }
public List<WebhookTrackFile> TrackFiles { get; set; }
public bool IsUpgrade { get; set; }
public string DownloadClient { get; set; }
public string DownloadId { get; set; }
}
}

Loading…
Cancel
Save