mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05:00
Add import date to upgraded episodes in CustomScript and Webhook connections
Fixes #7547 Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
@@ -100,6 +100,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
|
||||
{
|
||||
environmentVariables.Add("Radarr_DeletedRelativePaths", string.Join("|", message.OldMovieFiles.Select(e => e.RelativePath)));
|
||||
environmentVariables.Add("Radarr_DeletedPaths", string.Join("|", message.OldMovieFiles.Select(e => Path.Combine(movie.Path, e.RelativePath))));
|
||||
environmentVariables.Add("Radarr_DeletedDateAdded", string.Join("|", message.OldMovieFiles.Select(e => e.DateAdded)));
|
||||
}
|
||||
|
||||
ExecuteScript(environmentVariables);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
@@ -19,6 +20,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
SceneName = movieFile.SceneName;
|
||||
IndexerFlags = movieFile.IndexerFlags.ToString();
|
||||
Size = movieFile.Size;
|
||||
DateAdded = movieFile.DateAdded;
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
@@ -30,5 +32,6 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||
public string SceneName { get; set; }
|
||||
public string IndexerFlags { get; set; }
|
||||
public long Size { get; set; }
|
||||
public DateTime DateAdded { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user