From 02a46349a289753aeb61fc262dbf509e4b21d581 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 24 Jan 2021 12:19:15 -0800 Subject: [PATCH] Consistent types for on delete custom script events --- src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index 7b6aff744..e74938495 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -134,7 +134,7 @@ namespace NzbDrone.Core.Notifications.CustomScript var environmentVariables = new StringDictionary(); - environmentVariables.Add("Sonarr_EventType", "EpisodeDeleted"); + environmentVariables.Add("Sonarr_EventType", "EpisodeFileDelete"); environmentVariables.Add("Sonarr_Series_Id", series.Id.ToString()); environmentVariables.Add("Sonarr_Series_Title", series.Title); environmentVariables.Add("Sonarr_Series_Path", series.Path); @@ -164,7 +164,7 @@ namespace NzbDrone.Core.Notifications.CustomScript var series = deleteMessage.Series; var environmentVariables = new StringDictionary(); - environmentVariables.Add("Sonarr_EventType", "SeriesDeleted"); + environmentVariables.Add("Sonarr_EventType", "SeriesDelete"); environmentVariables.Add("Sonarr_Series_Id", series.Id.ToString()); environmentVariables.Add("Sonarr_Series_Title", series.Title); environmentVariables.Add("Sonarr_Series_Path", series.Path);