Add DeletedFiles on WebhookImportPayload

Expose DeleteFiles so it matches the model provided by Radarr/Sonarr
Used to trigger remove of file when upgrading
This commit is contained in:
Martijn van Duijneveldt 2022-03-27 21:33:20 +02:00 committed by Qstick
commit 5487acb041
2 changed files with 6 additions and 0 deletions

View file

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

View file

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