mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
Fixed: Importing of completed download when not a child of the download client output path
This commit is contained in:
@@ -178,12 +178,18 @@ namespace NzbDrone.Core.MediaFiles.MovieImport
|
||||
|
||||
private string GetOriginalFilePath(DownloadClientItem downloadClientItem, LocalMovie localMovie)
|
||||
{
|
||||
var path = localMovie.Path;
|
||||
|
||||
if (downloadClientItem != null)
|
||||
{
|
||||
return downloadClientItem.OutputPath.Directory.ToString().GetRelativePath(localMovie.Path);
|
||||
var outputDirectory = downloadClientItem.OutputPath.Directory.ToString();
|
||||
|
||||
if (outputDirectory.IsParentPath(path))
|
||||
{
|
||||
return outputDirectory.GetRelativePath(path);
|
||||
}
|
||||
}
|
||||
|
||||
var path = localMovie.Path;
|
||||
var folderMovieInfo = localMovie.FolderMovieInfo;
|
||||
|
||||
if (folderMovieInfo != null)
|
||||
|
Reference in New Issue
Block a user