New: Add import date to upgrads in CustomScript and Webhook connections

Closes #2945
This commit is contained in:
Qstick 2023-01-25 22:02:47 -06:00
parent 975508b351
commit 0fc2e0a9ac
2 changed files with 4 additions and 0 deletions

View file

@ -94,6 +94,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
if (message.OldFiles.Any())
{
environmentVariables.Add("Lidarr_DeletedPaths", string.Join("|", message.OldFiles.Select(e => e.Path)));
environmentVariables.Add("Lidarr_DeletedDateAdded", string.Join("|", message.OldFiles.Select(e => e.DateAdded)));
}
ExecuteScript(environmentVariables);