From b22a86e1d7059dcafc81bc5d823d186e44bacb5b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 28 Oct 2024 16:05:57 -0700 Subject: [PATCH] New: Include source path with Webhook import event movie file (cherry picked from commit 73208e2f60263b1236f094a2bf6c47ebd5a8a271) Closes #10635 --- src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs | 5 ++++- src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs index 017eb0746..041da3525 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -60,7 +60,10 @@ protected WebhookImportPayload BuildOnDownloadPayload(DownloadMessage message) ApplicationUrl = _configService.ApplicationUrl, Movie = GetMovie(message.Movie), RemoteMovie = new WebhookRemoteMovie(message.Movie), - MovieFile = new WebhookMovieFile(movieFile), + MovieFile = new WebhookMovieFile(movieFile) + { + SourcePath = message.SourcePath + }, Release = new WebhookGrabbedRelease(message.Release), IsUpgrade = message.OldMovieFiles.Any(), DownloadClient = message.DownloadClientInfo?.Name, diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs index 769777cf5..eff79d1d0 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFile.cs @@ -39,6 +39,7 @@ public WebhookMovieFile(MovieFile movieFile) public long Size { get; set; } public DateTime DateAdded { get; set; } public WebhookMovieFileMediaInfo MediaInfo { get; set; } + public string SourcePath { get; set; } public string RecycleBinPath { get; set; } } }