|
|
|
@ -39,6 +39,8 @@ namespace NzbDrone.Core.Notifications.CustomScript
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_Title", movie.Title);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_ImdbId", movie.ImdbId ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_TmdbId", movie.TmdbId.ToString());
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_In_Cinemas_Date", movie.InCinemas.ToString() ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_Physical_Release_Date", movie.PhysicalRelease.ToString() ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Release_Title", remoteMovie.Release.Title);
|
|
|
|
|
environmentVariables.Add("Radarr_Release_Indexer", remoteMovie.Release.Indexer ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Release_Size", remoteMovie.Release.Size.ToString());
|
|
|
|
@ -66,6 +68,8 @@ namespace NzbDrone.Core.Notifications.CustomScript
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_Path", movie.Path);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_ImdbId", movie.ImdbId ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_TmdbId", movie.TmdbId.ToString());
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_In_Cinemas_Date", movie.InCinemas.ToString() ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_Physical_Release_Date", movie.PhysicalRelease.ToString() ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_MovieFile_Id", movieFile.Id.ToString());
|
|
|
|
|
environmentVariables.Add("Radarr_MovieFile_RelativePath", movieFile.RelativePath);
|
|
|
|
|
environmentVariables.Add("Radarr_MovieFile_Path", Path.Combine(movie.Path, movieFile.RelativePath));
|
|
|
|
@ -95,6 +99,8 @@ namespace NzbDrone.Core.Notifications.CustomScript
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_Path", movie.Path);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_ImdbId", movie.ImdbId ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_TmdbId", movie.TmdbId.ToString());
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_In_Cinemas_Date", movie.InCinemas.ToString() ?? string.Empty);
|
|
|
|
|
environmentVariables.Add("Radarr_Movie_Physical_Release_Date", movie.PhysicalRelease.ToString() ?? string.Empty);
|
|
|
|
|
|
|
|
|
|
ExecuteScript(environmentVariables);
|
|
|
|
|
}
|
|
|
|
|