mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
New: Add import date to upgrads in CustomScript and Webhook connections
Closes #1827
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
@@ -16,6 +17,8 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
QualityVersion = bookFile.Quality.Revision.Version;
|
||||
ReleaseGroup = bookFile.ReleaseGroup;
|
||||
SceneName = bookFile.SceneName;
|
||||
Size = bookFile.Size;
|
||||
DateAdded = bookFile.DateAdded;
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
@@ -24,5 +27,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
public int QualityVersion { get; set; }
|
||||
public string ReleaseGroup { get; set; }
|
||||
public string SceneName { get; set; }
|
||||
public long Size { get; set; }
|
||||
public DateTime DateAdded { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user