1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

New: Add recycle bin path for deleted movies to webhook/custom script

(cherry picked from commit a71d40edba1388d67e4deefd8bfc354a7a83c6b1)

Closes #9674
This commit is contained in:
Mark McDowall
2024-01-20 19:22:07 -08:00
committed by Bogdan
parent 82fb355930
commit 99ab65f790
17 changed files with 58 additions and 33 deletions
@@ -66,9 +66,10 @@ namespace NzbDrone.Core.Notifications.Webhook
if (message.OldMovieFiles.Any())
{
payload.DeletedFiles = message.OldMovieFiles.ConvertAll(x =>
new WebhookMovieFile(x)
new WebhookMovieFile(x.MovieFile)
{
Path = Path.Combine(message.Movie.Path, x.RelativePath)
Path = Path.Combine(message.Movie.Path, x.MovieFile.RelativePath),
RecycleBinPath = x.RecycleBinPath
});
}