Expose more information to the Webhook notification (#935)

* Fix/implement Webhook notifications

* Expose more information (specifically TMDB ID)
Ross Valler 8 years ago committed by Devin Buhl
parent 3dc9d3a420
commit 06bd6db601

@ -5,21 +5,27 @@ namespace NzbDrone.Core.Notifications.Webhook
{ {
public class WebhookRemoteMovie public class WebhookRemoteMovie
{ {
public int TmdbId { get; set; }
public string ImdbId { get; set; } public string ImdbId { get; set; }
public string Title { get; set; } public string Title { get; set; }
public int Year { get; set; }
public WebhookRemoteMovie() { } public WebhookRemoteMovie() { }
public WebhookRemoteMovie(RemoteMovie remoteMovie) public WebhookRemoteMovie(RemoteMovie remoteMovie)
{ {
TmdbId = remoteMovie.Movie.TmdbId;
ImdbId = remoteMovie.Movie.ImdbId; ImdbId = remoteMovie.Movie.ImdbId;
Title = remoteMovie.Release.Title; Title = remoteMovie.Movie.Title;
Year = remoteMovie.Movie.Year;
} }
public WebhookRemoteMovie(Movie movie) public WebhookRemoteMovie(Movie movie)
{ {
TmdbId = movie.TmdbId;
ImdbId = movie.ImdbId; ImdbId = movie.ImdbId;
Title = movie.Title; Title = movie.Title;
Year = movie.Year;
} }
} }
} }

Loading…
Cancel
Save