1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-22 07:52:34 +00:00

New: Include source path with Webhook import event movie file

(cherry picked from commit 73208e2f60263b1236f094a2bf6c47ebd5a8a271)

Closes #10635
This commit is contained in:
Mark McDowall 2024-10-28 16:05:57 -07:00 committed by Bogdan
parent 5976d66511
commit b22a86e1d7
2 changed files with 5 additions and 1 deletions

View file

@ -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,

View file

@ -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; }
}
}