mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-22 22:16:13 -04:00
New: Add recycle bin path for deleted episodes to webhook/custom script
Closes #6114
This commit is contained in:
committed by
Mark McDowall
parent
9ba5850fca
commit
a71d40edba
@@ -65,9 +65,10 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
|
||||
if (message.OldFiles.Any())
|
||||
{
|
||||
payload.DeletedFiles = message.OldFiles.ConvertAll(x => new WebhookEpisodeFile(x)
|
||||
payload.DeletedFiles = message.OldFiles.ConvertAll(x => new WebhookEpisodeFile(x.EpisodeFile)
|
||||
{
|
||||
Path = Path.Combine(message.Series.Path, x.RelativePath)
|
||||
Path = Path.Combine(message.Series.Path, x.EpisodeFile.RelativePath),
|
||||
RecycleBinPath = x.RecycleBinPath
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user