1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Ignore files in subfolders during a manual import

This commit is contained in:
Taloth Saldono 2020-09-21 17:27:02 +02:00 committed by Qstick
parent c7c97e508d
commit 2ee77aa0a4

View File

@ -133,7 +133,7 @@ private List<ManualImportItem> ProcessFolder(string rootFolder, string baseFolde
}
var folderInfo = Parser.Parser.ParseMovieTitle(directoryInfo.Name);
var movieFiles = _diskScanService.GetVideoFiles(baseFolder).ToList();
var movieFiles = _diskScanService.FilterPaths(rootFolder, _diskScanService.GetVideoFiles(baseFolder).ToList());
var decisions = _importDecisionMaker.GetImportDecisions(movieFiles, movie, downloadClientItem, folderInfo, SceneSource(movie, baseFolder), filterExistingFiles);
return decisions.Select(decision => MapItem(decision, rootFolder, downloadId, directoryInfo.Name)).ToList();