diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs index 5bf3625739..de7e9925f0 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using NzbDrone.Core.Languages; using NzbDrone.Core.MediaFiles; using NzbDrone.Core.Movies; @@ -20,6 +21,7 @@ public class WebhookMovie public List Genres { get; set; } public List Images { get; set; } public List Tags { get; set; } + public Language OriginalLanguage { get; set; } public WebhookMovie() { @@ -38,6 +40,7 @@ public WebhookMovie(Movie movie, List tags) Genres = movie.MovieMetadata.Value.Genres; Images = movie.MovieMetadata.Value.Images.Select(i => new WebhookImage(i)).ToList(); Tags = tags; + OriginalLanguage = movie.MovieMetadata.Value.OriginalLanguage; } public WebhookMovie(Movie movie, MovieFile movieFile, List tags) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs index eff79d1d00..ec34b43fde 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.Generic; +using NzbDrone.Core.Languages; using NzbDrone.Core.MediaFiles; namespace NzbDrone.Core.Notifications.Webhook @@ -21,6 +23,7 @@ public WebhookMovieFile(MovieFile movieFile) IndexerFlags = movieFile.IndexerFlags.ToString(); Size = movieFile.Size; DateAdded = movieFile.DateAdded; + Languages = movieFile.Languages; if (movieFile.MediaInfo != null) { @@ -38,6 +41,7 @@ public WebhookMovieFile(MovieFile movieFile) public string IndexerFlags { get; set; } public long Size { get; set; } public DateTime DateAdded { get; set; } + public List Languages { get; set; } public WebhookMovieFileMediaInfo 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 74e4fc9b93..656899c9ba 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using NzbDrone.Core.Languages; using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; @@ -22,6 +23,7 @@ public WebhookRelease(QualityModel quality, RemoteMovie remoteMovie) Size = remoteMovie.Release.Size; CustomFormats = remoteMovie.CustomFormats?.Select(x => x.Name).ToList(); CustomFormatScore = remoteMovie.CustomFormatScore; + Languages = remoteMovie.Languages; IndexerFlags = Enum.GetValues(typeof(IndexerFlags)).Cast().Where(r => (remoteMovie.Release.IndexerFlags & r) == r).Select(r => r.ToString()).ToList(); } @@ -33,6 +35,7 @@ public WebhookRelease(QualityModel quality, RemoteMovie remoteMovie) public long Size { get; set; } public int CustomFormatScore { get; set; } public List CustomFormats { get; set; } + public List Languages { get; set; } public List IndexerFlags { get; set; } } }