mirror of
https://github.com/Radarr/Radarr
synced 2026-01-10 01:27:21 +01:00
Added: FolderPath to the Movie Webhook (#2230)
This commit is contained in:
parent
ec3f094d12
commit
29909db604
2 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue