From 29909db604b0cd88173975fb9e98ad28e1b2cc3e Mon Sep 17 00:00:00 2001 From: adnanklink <32601617+adnanklink@users.noreply.github.com> Date: Fri, 10 Nov 2017 09:06:45 -0600 Subject: [PATCH] Added: FolderPath to the Movie Webhook (#2230) --- src/NzbDrone.Core/Notifications/Webhook/Webhook.cs | 2 +- src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs index ed9a6d582..4f10e89c9 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/Webhook.cs @@ -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 diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs index 0699ae44a..ef13c8d20 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovie.cs @@ -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)