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:
parent
ec3f094d12
commit
29909db604
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user