mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Expose more information to the Webhook notification (#935)
* Fix/implement Webhook notifications * Expose more information (specifically TMDB ID)
This commit is contained in:
parent
3dc9d3a420
commit
06bd6db601
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue