mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
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:
parent
5a69bf42f6
commit
5487acb041
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue