diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index cae6930ce..5ea0ced1d 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -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); diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookTrackFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookTrackFile.cs index 26086cb99..be2905d92 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookTrackFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookTrackFile.cs @@ -1,3 +1,4 @@ +using System; using NzbDrone.Core.MediaFiles; namespace NzbDrone.Core.Notifications.Webhook @@ -17,6 +18,7 @@ namespace NzbDrone.Core.Notifications.Webhook ReleaseGroup = trackFile.ReleaseGroup; SceneName = trackFile.SceneName; Size = trackFile.Size; + DateAdded = trackFile.DateAdded; } public int Id { get; set; } @@ -26,5 +28,6 @@ namespace NzbDrone.Core.Notifications.Webhook public string ReleaseGroup { get; set; } public string SceneName { get; set; } public long Size { get; set; } + public DateTime DateAdded { get; set; } } }