Moviefile, what movie file? (#466)

Send the moviefile object.
This commit is contained in:
vertigo235 2017-01-26 14:46:55 -06:00 committed by Leonardo Galli
parent 6efd63a292
commit 487c5e22ce
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
environmentVariables.Add("Radarr_Movie_Id", movie.Id.ToString());
environmentVariables.Add("Radarr_Movie_Title", movie.Title);
environmentVariables.Add("Radarr_Movie_ImdbId", movie.ImdbId.ToString());
//environmentVariables.Add("Radarr_MovieFile_Id", movieFile.Id.ToString()); TODO: Debug issue with moviefile ID and add back later
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));
environmentVariables.Add("Radarr_MovieFile_Quality", movieFile.Quality.Quality.Name);

View File

@ -213,7 +213,9 @@ namespace NzbDrone.Core.Notifications
downloadMessage.Message = GetMessage(message.Movie.Movie, message.Movie.Quality);
downloadMessage.Series = null;
downloadMessage.EpisodeFile = null;
downloadMessage.MovieFile = message.MovieFile;
downloadMessage.Movie = message.Movie.Movie;
downloadMessage.OldFiles = null;
downloadMessage.OldMovieFiles = message.OldFiles;
downloadMessage.SourcePath = message.Movie.Path;