From 70bbd890679d7339faec788a7fcc74df5413172a Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 4 Jun 2023 16:17:44 -0500 Subject: [PATCH] New: Include CustomFormats for CustomScript on Grab Closes #3019 Co-Authored-By: Mark McDowall --- 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 83aac352c..edc325d27 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -72,6 +72,8 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Lidarr_Download_Client", message.DownloadClientName ?? string.Empty); environmentVariables.Add("Lidarr_Download_Client_Type", message.DownloadClientType ?? string.Empty); environmentVariables.Add("Lidarr_Download_Id", message.DownloadId ?? string.Empty); + environmentVariables.Add("Lidarr_Release_CustomFormat", string.Join("|", remoteAlbum.CustomFormats)); + environmentVariables.Add("Lidarr_Release_CustomFormatScore", remoteAlbum.CustomFormatScore.ToString()); ExecuteScript(environmentVariables); }