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);