diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs index c1a0d2364..aafb92414 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.Generic; +using NzbDrone.Core.Languages; using NzbDrone.Core.MediaFiles; namespace NzbDrone.Core.Notifications.Webhook @@ -20,6 +22,7 @@ namespace NzbDrone.Core.Notifications.Webhook SceneName = episodeFile.SceneName; Size = episodeFile.Size; DateAdded = episodeFile.DateAdded; + Languages = episodeFile.Languages; if (episodeFile.MediaInfo != null) { @@ -36,6 +39,7 @@ namespace NzbDrone.Core.Notifications.Webhook public string SceneName { get; set; } public long Size { get; set; } public DateTime DateAdded { get; set; } + public List Languages { get; set; } public WebhookEpisodeFileMediaInfo MediaInfo { get; set; } public string SourcePath { get; set; } public string RecycleBinPath { get; set; } diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs index bd825a062..f9eaba4f2 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using NzbDrone.Core.Languages; using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; @@ -21,6 +22,7 @@ namespace NzbDrone.Core.Notifications.Webhook Size = remoteEpisode.Release.Size; CustomFormats = remoteEpisode.CustomFormats?.Select(x => x.Name).ToList(); CustomFormatScore = remoteEpisode.CustomFormatScore; + Languages = remoteEpisode.Languages; } public string Quality { get; set; } @@ -31,5 +33,6 @@ namespace NzbDrone.Core.Notifications.Webhook public long Size { get; set; } public int CustomFormatScore { get; set; } public List CustomFormats { get; set; } + public List Languages { get; set; } } } diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookSeries.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookSeries.cs index de1da85ad..1a9b51d7e 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookSeries.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookSeries.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using NzbDrone.Core.Languages; using NzbDrone.Core.Tv; namespace NzbDrone.Core.Notifications.Webhook @@ -19,6 +20,7 @@ namespace NzbDrone.Core.Notifications.Webhook public List Genres { get; set; } public List Images { get; set; } public List Tags { get; set; } + public Language OriginalLanguage { get; set; } public WebhookSeries() { @@ -39,6 +41,7 @@ namespace NzbDrone.Core.Notifications.Webhook Genres = series.Genres; Images = series.Images.Select(i => new WebhookImage(i)).ToList(); Tags = tags; + OriginalLanguage = series.OriginalLanguage; } } }