From e67d3d36665613c3e19a270c7adcaf4a7a5e4c70 Mon Sep 17 00:00:00 2001 From: Daniel Martin Gonzalez Date: Tue, 18 May 2021 20:41:13 +0200 Subject: [PATCH] New: Add missing properties to Connection Webhook (#6333) --- src/NzbDrone.Core/Notifications/Webhook/Webhook.cs | 1 + src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs | 2 ++ src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs index b22e588cf..d87c83f7c 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs @@ -136,6 +136,7 @@ private ValidationFailure SendWebhookTest() { Id = 1, Title = "Test Title", + Year = 1970, FolderPath = "C:\\testpath", ReleaseDate = "1970-01-01" }, diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs index a04806fe3..4a9fa3d7e 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs @@ -8,6 +8,7 @@ public class WebhookMovie { public int Id { get; set; } public string Title { get; set; } + public int Year { get; set; } public string FilePath { get; set; } public string ReleaseDate { get; set; } public string FolderPath { get; set; } @@ -22,6 +23,7 @@ public WebhookMovie(Movie movie) { Id = movie.Id; Title = movie.Title; + Year = movie.Year; ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd"); FolderPath = movie.Path; TmdbId = movie.TmdbId; diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs index d063c7ceb..7b69e3a8e 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs @@ -17,6 +17,7 @@ public WebhookMovieFile(MovieFile movieFile) QualityVersion = movieFile.Quality.Revision.Version; ReleaseGroup = movieFile.ReleaseGroup; SceneName = movieFile.SceneName; + IndexerFlags = movieFile.IndexerFlags.ToString(); Size = movieFile.Size; } @@ -27,6 +28,7 @@ public WebhookMovieFile(MovieFile movieFile) public int QualityVersion { get; set; } public string ReleaseGroup { get; set; } public string SceneName { get; set; } + public string IndexerFlags { get; set; } public long Size { get; set; } } }