mirror of
https://github.com/Radarr/Radarr
synced 2026-05-09 11:10:23 +02:00
New: Tmdb and Imdb Webhook Properties
This commit is contained in:
parent
dfdffb0626
commit
aae0ef200d
1 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NzbDrone.Core.MediaFiles;
|
using NzbDrone.Core.MediaFiles;
|
||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
|
|
||||||
|
|
@ -11,6 +11,8 @@ public class WebhookMovie
|
||||||
public string FilePath { get; set; }
|
public string FilePath { get; set; }
|
||||||
public string ReleaseDate { get; set; }
|
public string ReleaseDate { get; set; }
|
||||||
public string FolderPath { get; set; }
|
public string FolderPath { get; set; }
|
||||||
|
public int TmdbId { get; set; }
|
||||||
|
public string ImdbId { get; set; }
|
||||||
|
|
||||||
public WebhookMovie()
|
public WebhookMovie()
|
||||||
{
|
{
|
||||||
|
|
@ -22,6 +24,8 @@ public WebhookMovie(Movie movie)
|
||||||
Title = movie.Title;
|
Title = movie.Title;
|
||||||
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
|
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
|
||||||
FolderPath = movie.Path;
|
FolderPath = movie.Path;
|
||||||
|
TmdbId = movie.TmdbId;
|
||||||
|
ImdbId = movie.ImdbId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WebhookMovie(Movie movie, MovieFile movieFile)
|
public WebhookMovie(Movie movie, MovieFile movieFile)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue