mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Consistent types for on delete custom script events
This commit is contained in:
parent
98dc20d919
commit
02a46349a2
@ -134,7 +134,7 @@ public override void OnEpisodeFileDelete(EpisodeDeleteMessage deleteMessage)
|
||||
|
||||
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 @@ public override void OnSeriesDelete(SeriesDeleteMessage deleteMessage)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user