From cd30175308dd8d500d7d0abebbf66c9fe9c95f50 Mon Sep 17 00:00:00 2001 From: BubbleRep Date: Mon, 18 Oct 2021 06:39:08 +0200 Subject: [PATCH] Fixed: On Delete events for Custom Scripts not being executed Closes #4688 --- 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 6bac517aa..e70d861b1 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -164,6 +164,7 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Sonarr_EpisodeFile_ReleaseGroup", episodeFile.ReleaseGroup ?? string.Empty); environmentVariables.Add("Sonarr_EpisodeFile_SceneName", episodeFile.SceneName ?? string.Empty); + ExecuteScript(environmentVariables); } public override void OnSeriesDelete(SeriesDeleteMessage deleteMessage)