From d096536be31b504053fb912a5fd7ac15ce97dc6d Mon Sep 17 00:00:00 2001 From: nitsua Date: Mon, 12 Oct 2020 12:23:39 -0400 Subject: [PATCH] Add the list of book ids to the custom script grab event --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index 8662ee2a0..6749491f6 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -46,6 +46,7 @@ public override void OnGrab(GrabMessage message) environmentVariables.Add("Readarr_Release_BookCount", remoteBook.Books.Count.ToString()); environmentVariables.Add("Readarr_Release_BookReleaseDates", string.Join(",", remoteBook.Books.Select(e => e.ReleaseDate))); environmentVariables.Add("Readarr_Release_BookTitles", string.Join("|", remoteBook.Books.Select(e => e.Title))); + environmentVariables.Add("Readarr_Release_BookIds", string.Join("|", remoteBook.Books.Select(e => e.Id.ToString()))); environmentVariables.Add("Readarr_Release_Title", remoteBook.Release.Title); environmentVariables.Add("Readarr_Release_Indexer", remoteBook.Release.Indexer ?? string.Empty); environmentVariables.Add("Readarr_Release_Size", remoteBook.Release.Size.ToString());