From 500bc3a571bb15a9e8e23e7677035fef64f16720 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 15 Oct 2022 14:33:46 -0500 Subject: [PATCH] New: Include CustomFormats for CustomScript on Grab Fixes #7656 Co-Authored-By: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index b14eca6e8..6aa5f8642 100755 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -60,6 +60,8 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Radarr_Download_Client", message.DownloadClientName ?? string.Empty); environmentVariables.Add("Radarr_Download_Client_Type", message.DownloadClientType ?? string.Empty); environmentVariables.Add("Radarr_Download_Id", message.DownloadId ?? string.Empty); + environmentVariables.Add("Radarr_Release_CustomFormat", string.Join("|", remoteMovie.CustomFormats)); + environmentVariables.Add("Radarr_Release_CustomFormatScore", remoteMovie.CustomFormatScore.ToString()); ExecuteScript(environmentVariables); }