From 570a23e143061713b4f92e6390d9ffe00651ca60 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 19 May 2018 22:20:08 -0400 Subject: [PATCH] Fixed: Custom script execution when release processed via /push API Co-Authored-By: Mark McDowall --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index e91ee4b54..9629cc16b 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -44,7 +44,7 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Lidarr_Release_AlbumReleaseDates", string.Join(",", remoteAlbum.Albums.Select(e => e.ReleaseDate))); environmentVariables.Add("Lidarr_Release_AlbumTitles", string.Join("|", remoteAlbum.Albums.Select(e => e.Title))); environmentVariables.Add("Lidarr_Release_Title", remoteAlbum.Release.Title); - environmentVariables.Add("Lidarr_Release_Indexer", remoteAlbum.Release.Indexer); + environmentVariables.Add("Lidarr_Release_Indexer", remoteAlbum.Release.Indexer ?? string.Empty); environmentVariables.Add("Lidarr_Release_Size", remoteAlbum.Release.Size.ToString()); environmentVariables.Add("Lidarr_Release_Quality", remoteAlbum.ParsedAlbumInfo.Quality.Quality.Name); environmentVariables.Add("Lidarr_Release_QualityVersion", remoteAlbum.ParsedAlbumInfo.Quality.Revision.Version.ToString());