mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-19 21:46:43 -04:00
New: Add release info to webhook/custom script import events
Closes #5503
This commit is contained in:
@@ -138,6 +138,9 @@ namespace NzbDrone.Core.Notifications.CustomScript
|
||||
environmentVariables.Add("Sonarr_EpisodeFile_MediaInfo_VideoDynamicRangeType", MediaInfoFormatter.FormatVideoDynamicRangeType(episodeFile.MediaInfo));
|
||||
environmentVariables.Add("Sonarr_EpisodeFile_CustomFormat", string.Join("|", message.EpisodeInfo.CustomFormats));
|
||||
environmentVariables.Add("Sonarr_EpisodeFile_CustomFormatScore", message.EpisodeInfo.CustomFormatScore.ToString());
|
||||
environmentVariables.Add("Sonarr_Release_Indexer", message.Release?.Indexer);
|
||||
environmentVariables.Add("Sonarr_Release_Size", message.Release?.Size.ToString());
|
||||
environmentVariables.Add("Sonarr_Release_Title", message.Release?.Title);
|
||||
|
||||
if (message.OldFiles.Any())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user