mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
New: Add import date to upgrads in CustomScript and Webhook connections
Closes #2945
This commit is contained in:
parent
975508b351
commit
0fc2e0a9ac
2 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
|
||||||
if (message.OldFiles.Any())
|
if (message.OldFiles.Any())
|
||||||
{
|
{
|
||||||
environmentVariables.Add("Lidarr_DeletedPaths", string.Join("|", message.OldFiles.Select(e => e.Path)));
|
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);
|
ExecuteScript(environmentVariables);
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using NzbDrone.Core.MediaFiles;
|
using NzbDrone.Core.MediaFiles;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Notifications.Webhook
|
namespace NzbDrone.Core.Notifications.Webhook
|
||||||
|
@ -17,6 +18,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||||
ReleaseGroup = trackFile.ReleaseGroup;
|
ReleaseGroup = trackFile.ReleaseGroup;
|
||||||
SceneName = trackFile.SceneName;
|
SceneName = trackFile.SceneName;
|
||||||
Size = trackFile.Size;
|
Size = trackFile.Size;
|
||||||
|
DateAdded = trackFile.DateAdded;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
@ -26,5 +28,6 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||||
public string ReleaseGroup { get; set; }
|
public string ReleaseGroup { get; set; }
|
||||||
public string SceneName { get; set; }
|
public string SceneName { get; set; }
|
||||||
public long Size { get; set; }
|
public long Size { get; set; }
|
||||||
|
public DateTime DateAdded { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue