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 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;
}
}
}

Loading…
Cancel
Save