From 0a030386f2604f6a31b176727e335c9c088bbf3e Mon Sep 17 00:00:00 2001 From: fhscholl Date: Sat, 28 Oct 2017 11:19:49 -0400 Subject: [PATCH] Added: Movie_Quality to onGrab (#2221) (Fixes #1833) --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs old mode 100644 new mode 100755 index ffdc075d4..d49414197 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; @@ -31,6 +31,7 @@ public override void OnGrab(GrabMessage message) { var movie = message.Movie; var remoteMovie = message.RemoteMovie; + var quality = message.Quality; var environmentVariables = new StringDictionary(); environmentVariables.Add("Radarr_EventType", "Grab"); @@ -42,6 +43,8 @@ public override void OnGrab(GrabMessage message) environmentVariables.Add("Radarr_Release_Indexer", remoteMovie.Release.Indexer); environmentVariables.Add("Radarr_Release_Size", remoteMovie.Release.Size.ToString()); environmentVariables.Add("Radarr_Release_ReleaseGroup", remoteMovie.ParsedMovieInfo.ReleaseGroup ?? string.Empty); + environmentVariables.Add("Radarr_Release_Quality", quality.Quality.Name); + environmentVariables.Add("Radarr_Release_QualityVersion", quality.Revision.Version.ToString()); ExecuteScript(environmentVariables); }