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

Closes #1827
This commit is contained in:
Qstick
2023-01-25 22:02:47 -06:00
parent df0a5f004d
commit d15c42957a
2 changed files with 6 additions and 0 deletions
@@ -88,6 +88,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
if (message.OldFiles.Any())
{
environmentVariables.Add("Readarr_DeletedPaths", string.Join("|", message.OldFiles.Select(e => e.Path)));
environmentVariables.Add("Readarr_DeletedDateAdded", string.Join("|", message.OldFiles.Select(e => e.DateAdded)));
}
ExecuteScript(environmentVariables);