mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-20 01:42:35 +01:00
Fixed: Paths for renamed movie files in Custom Script and Webhook
Closes #10359
This commit is contained in:
parent
674e414111
commit
2700a6cf8a
@ -172,7 +172,7 @@ public override void OnMovieRename(Movie movie, List<RenamedMovieFile> renamedFi
|
||||
environmentVariables.Add("Radarr_Movie_Physical_Release_Date", movie.MovieMetadata.Value.PhysicalRelease.ToString() ?? string.Empty);
|
||||
environmentVariables.Add("Radarr_MovieFile_Ids", string.Join(",", renamedFiles.Select(e => e.MovieFile.Id)));
|
||||
environmentVariables.Add("Radarr_MovieFile_RelativePaths", string.Join("|", renamedFiles.Select(e => e.MovieFile.RelativePath)));
|
||||
environmentVariables.Add("Radarr_MovieFile_Paths", string.Join("|", renamedFiles.Select(e => e.MovieFile.Path)));
|
||||
environmentVariables.Add("Radarr_MovieFile_Paths", string.Join("|", renamedFiles.Select(e => Path.Combine(movie.Path, e.MovieFile.RelativePath))));
|
||||
environmentVariables.Add("Radarr_MovieFile_PreviousRelativePaths", string.Join("|", renamedFiles.Select(e => e.PreviousRelativePath)));
|
||||
environmentVariables.Add("Radarr_MovieFile_PreviousPaths", string.Join("|", renamedFiles.Select(e => e.PreviousPath)));
|
||||
|
||||
|
@ -13,7 +13,7 @@ public WebhookMovieFile(MovieFile movieFile)
|
||||
{
|
||||
Id = movieFile.Id;
|
||||
RelativePath = movieFile.RelativePath;
|
||||
Path = movieFile.Path;
|
||||
Path = System.IO.Path.Combine(movieFile.Movie.Path, movieFile.RelativePath);
|
||||
Quality = movieFile.Quality.Quality.Name;
|
||||
QualityVersion = movieFile.Quality.Revision.Version;
|
||||
ReleaseGroup = movieFile.ReleaseGroup;
|
||||
|
Loading…
Reference in New Issue
Block a user