mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
New: Include source path with Webhook import event movie file
(cherry picked from commit 73208e2f60263b1236f094a2bf6c47ebd5a8a271) Closes #10635
This commit is contained in:
parent
5976d66511
commit
b22a86e1d7
2 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,10 @@ protected WebhookImportPayload BuildOnDownloadPayload(DownloadMessage message)
|
||||||
ApplicationUrl = _configService.ApplicationUrl,
|
ApplicationUrl = _configService.ApplicationUrl,
|
||||||
Movie = GetMovie(message.Movie),
|
Movie = GetMovie(message.Movie),
|
||||||
RemoteMovie = new WebhookRemoteMovie(message.Movie),
|
RemoteMovie = new WebhookRemoteMovie(message.Movie),
|
||||||
MovieFile = new WebhookMovieFile(movieFile),
|
MovieFile = new WebhookMovieFile(movieFile)
|
||||||
|
{
|
||||||
|
SourcePath = message.SourcePath
|
||||||
|
},
|
||||||
Release = new WebhookGrabbedRelease(message.Release),
|
Release = new WebhookGrabbedRelease(message.Release),
|
||||||
IsUpgrade = message.OldMovieFiles.Any(),
|
IsUpgrade = message.OldMovieFiles.Any(),
|
||||||
DownloadClient = message.DownloadClientInfo?.Name,
|
DownloadClient = message.DownloadClientInfo?.Name,
|
||||||
|
|
|
@ -39,6 +39,7 @@ public WebhookMovieFile(MovieFile movieFile)
|
||||||
public long Size { get; set; }
|
public long Size { get; set; }
|
||||||
public DateTime DateAdded { get; set; }
|
public DateTime DateAdded { get; set; }
|
||||||
public WebhookMovieFileMediaInfo MediaInfo { get; set; }
|
public WebhookMovieFileMediaInfo MediaInfo { get; set; }
|
||||||
|
public string SourcePath { get; set; }
|
||||||
public string RecycleBinPath { get; set; }
|
public string RecycleBinPath { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue