1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -04:00

New: Add import date to upgraded episodes in CustomScript and Webhook connections

Closes #3615
This commit is contained in:
Mark McDowall
2022-08-15 13:31:28 -07:00
parent 4b5c8a815f
commit 549cdbe15a
2 changed files with 5 additions and 1 deletions
@@ -109,6 +109,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
{
environmentVariables.Add("Sonarr_DeletedRelativePaths", string.Join("|", message.OldFiles.Select(e => e.RelativePath)));
environmentVariables.Add("Sonarr_DeletedPaths", string.Join("|", message.OldFiles.Select(e => Path.Combine(series.Path, e.RelativePath))));
environmentVariables.Add("Sonarr_DeletedDateAdded", string.Join("|", message.OldFiles.Select(e => e.DateAdded)));
}
ExecuteScript(environmentVariables);