1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

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 @@ private ValidationFailure SendWebhookTest()
{
Id = 1,
Title = "Test Title",
FilePath = "C:\\testpath",
FolderPath = "C:\\testpath",
ReleaseDate = "1970-01-01"
},
RemoteMovie = new WebhookRemoteMovie

View File

@ -10,6 +10,7 @@ public class WebhookMovie
public string Title { get; set; }
public string FilePath { get; set; }
public string ReleaseDate { get; set; }
public string FolderPath { get; set; }
public WebhookMovie() { }
@ -18,6 +19,7 @@ public WebhookMovie(Movie movie)
Id = movie.Id;
Title = movie.Title;
ReleaseDate = movie.PhysicalReleaseDate().ToString("yyyy-MM-dd");
FolderPath = movie.Path;
}
public WebhookMovie(Movie movie, MovieFile movieFile) : this(movie)