1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

New: Include source path with Webhook import event episode file

This commit is contained in:
Mark McDowall 2024-10-28 16:05:57 -07:00 committed by Mark McDowall
parent 1df0ba9e5a
commit 73208e2f60
2 changed files with 5 additions and 1 deletions

View File

@ -60,7 +60,10 @@ protected WebhookImportPayload BuildOnDownloadPayload(DownloadMessage message)
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,

View File

@ -37,6 +37,7 @@ public WebhookEpisodeFile(EpisodeFile episodeFile)
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; }
}
}