Add import date to upgraded episodes in CustomScript and Webhook connections

Fixes #7547

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/7690/head
Qstick 2 years ago
parent 4280df8b61
commit 2958faf4a8

@ -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; }
}
}

Loading…
Cancel
Save