Skip to content

Commit

Permalink
New: Include CustomFormats for CustomScript on Grab
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerboy448 authored and markus101 committed Oct 3, 2022
1 parent 77a7f3e commit 2388853
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public override void OnGrab(GrabMessage message)
environmentVariables.Add("Sonarr_Download_Client", message.DownloadClientName ?? string.Empty);
environmentVariables.Add("Sonarr_Download_Client_Type", message.DownloadClientType ?? string.Empty);
environmentVariables.Add("Sonarr_Download_Id", message.DownloadId ?? string.Empty);
environmentVariables.Add("Sonarr_Release_CustomFormat", string.Join("|", remoteEpisode.CustomFormats));
environmentVariables.Add("Sonarr_Release_CustomFormatScore", remoteEpisode.CustomFormatScore.ToString());

ExecuteScript(environmentVariables);
}
Expand Down

0 comments on commit 2388853

Please sign in to comment.