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

Closes #1827
pull/2167/head
Qstick 1 year ago
parent df0a5f004d
commit d15c42957a

@ -88,6 +88,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
if (message.OldFiles.Any()) if (message.OldFiles.Any())
{ {
environmentVariables.Add("Readarr_DeletedPaths", string.Join("|", message.OldFiles.Select(e => e.Path))); 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); 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
@ -16,6 +17,8 @@ namespace NzbDrone.Core.Notifications.Webhook
QualityVersion = bookFile.Quality.Revision.Version; QualityVersion = bookFile.Quality.Revision.Version;
ReleaseGroup = bookFile.ReleaseGroup; ReleaseGroup = bookFile.ReleaseGroup;
SceneName = bookFile.SceneName; SceneName = bookFile.SceneName;
Size = bookFile.Size;
DateAdded = bookFile.DateAdded;
} }
public int Id { get; set; } public int Id { get; set; }
@ -24,5 +27,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public int QualityVersion { get; set; } public int QualityVersion { get; set; }
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 DateTime DateAdded { get; set; }
} }
} }

Loading…
Cancel
Save