mirror of https://github.com/Radarr/Radarr
Added: FolderPath to the Movie Webhook (#2230)
This commit is contained in:
parent
ec3f094d12
commit
29909db604
|
@ -87,7 +87,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||
{
|
||||
Id = 1,
|
||||
Title = "Test Title",
|
||||
FilePath = "C:\\testpath",
|
||||
FolderPath = "C:\\testpath",
|
||||
ReleaseDate = "1970-01-01"
|
||||
},
|
||||
RemoteMovie = new WebhookRemoteMovie
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||
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 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||
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