From 73208e2f60263b1236f094a2bf6c47ebd5a8a271 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 episode file --- src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs | 5 ++++- .../Notifications/Webhook/WebhookEpisodeFile.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 71fe1bff0..9b2fe22fa 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -60,7 +60,10 @@ namespace NzbDrone.Core.Notifications.Webhook ApplicationUrl = _configService.ApplicationUrl, Series = GetSeries(message.Series), Episodes = episodeFile.Episodes.Value.ConvertAll(x => new WebhookEpisode(x)), - EpisodeFile = new WebhookEpisodeFile(episodeFile), + EpisodeFile = new WebhookEpisodeFile(episodeFile) + { + SourcePath = message.SourcePath + }, Release = new WebhookGrabbedRelease(message.Release), IsUpgrade = message.OldFiles.Any(), DownloadClient = message.DownloadClientInfo?.Name, diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs index c0348931b..c1a0d2364 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookEpisodeFile.cs @@ -37,6 +37,7 @@ namespace NzbDrone.Core.Notifications.Webhook public long Size { get; set; } public DateTime DateAdded { get; set; } public WebhookEpisodeFileMediaInfo MediaInfo { get; set; } + public string SourcePath { get; set; } public string RecycleBinPath { get; set; } } }