Merge pull request #454 from vertigo235/notifications

Custom Script Fix: Parse movie not episode
Devin Buhl 8 years ago committed by GitHub
commit 7e6db89eff

@ -31,7 +31,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
{ {
var movie = message.Movie; var movie = message.Movie;
var remoteMovie = message.RemoteMovie; var remoteMovie = message.RemoteMovie;
var releaseGroup = remoteMovie.ParsedEpisodeInfo.ReleaseGroup; var releaseGroup = remoteMovie.ParsedMovieInfo.ReleaseGroup;
var environmentVariables = new StringDictionary(); var environmentVariables = new StringDictionary();
environmentVariables.Add("Radarr_EventType", "Grab"); environmentVariables.Add("Radarr_EventType", "Grab");
@ -84,16 +84,6 @@ namespace NzbDrone.Core.Notifications.CustomScript
public override void OnRename(Series series) public override void OnRename(Series series)
{ {
var environmentVariables = new StringDictionary();
environmentVariables.Add("Radarr_EventType", "Rename");
environmentVariables.Add("Radarr_Series_Id", series.Id.ToString());
environmentVariables.Add("Radarr_Series_Title", series.Title);
environmentVariables.Add("Radarr_Series_Path", series.Path);
environmentVariables.Add("Radarr_Series_TvdbId", series.TvdbId.ToString());
environmentVariables.Add("Radarr_Series_Type", series.SeriesType.ToString());
ExecuteScript(environmentVariables);
} }
public override string Name => "Custom Script"; public override string Name => "Custom Script";

Loading…
Cancel
Save