Added: FolderPath to the Movie Webhook (#2230)

This commit is contained in:
adnanklink 2017-11-10 09:06:45 -06:00 committed by Leonardo Galli
parent ec3f094d12
commit 29909db604
2 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace NzbDrone.Core.Notifications.Webhook
{ {
Id = 1, Id = 1,
Title = "Test Title", Title = "Test Title",
FilePath = "C:\\testpath", FolderPath = "C:\\testpath",
ReleaseDate = "1970-01-01" ReleaseDate = "1970-01-01"
}, },
RemoteMovie = new WebhookRemoteMovie RemoteMovie = new WebhookRemoteMovie

View File

@ -10,6 +10,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public string Title { get; set; } public string Title { get; set; }
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 WebhookMovie() { } public WebhookMovie() { }
@ -18,6 +19,7 @@ namespace NzbDrone.Core.Notifications.Webhook
Id = movie.Id; Id = movie.Id;
Title = movie.Title; Title = movie.Title;
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd"); ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
FolderPath = movie.Path;
} }
public WebhookMovie(Movie movie, MovieFile movieFile) : this(movie) public WebhookMovie(Movie movie, MovieFile movieFile) : this(movie)