Add DeletedFiles on WebhookImportPayload

Expose DeleteFiles so it matches the model provided by Radarr/Sonarr
Used to trigger remove of file when upgrading
pull/2731/head
Martijn van Duijneveldt 3 years ago committed by Qstick
parent 5a69bf42f6
commit 5487acb041

@ -63,6 +63,11 @@ namespace NzbDrone.Core.Notifications.Webhook
DownloadId = message.DownloadId
};
if (message.OldFiles.Any())
{
payload.DeletedFiles = message.OldFiles.ConvertAll(x => new WebhookTrackFile(x));
}
_proxy.SendWebhook(payload, Settings);
}

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

Loading…
Cancel
Save