From 06bd6db6011de7eff91c32fd7a9c14998e939f2b Mon Sep 17 00:00:00 2001 From: Ross Valler Date: Mon, 27 Feb 2017 17:21:44 -0500 Subject: [PATCH] Expose more information to the Webhook notification (#935) * Fix/implement Webhook notifications * Expose more information (specifically TMDB ID) --- .../Notifications/Webhook/WebhookRemoteMovie.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookRemoteMovie.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookRemoteMovie.cs index 95f6b78fa..5b32fc30c 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookRemoteMovie.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookRemoteMovie.cs @@ -5,21 +5,27 @@ namespace NzbDrone.Core.Notifications.Webhook { public class WebhookRemoteMovie { + public int TmdbId { get; set; } public string ImdbId { get; set; } public string Title { get; set; } + public int Year { get; set; } public WebhookRemoteMovie() { } public WebhookRemoteMovie(RemoteMovie remoteMovie) { + TmdbId = remoteMovie.Movie.TmdbId; ImdbId = remoteMovie.Movie.ImdbId; - Title = remoteMovie.Release.Title; + Title = remoteMovie.Movie.Title; + Year = remoteMovie.Movie.Year; } public WebhookRemoteMovie(Movie movie) { + TmdbId = movie.TmdbId; ImdbId = movie.ImdbId; Title = movie.Title; + Year = movie.Year; } } }