mirror of https://github.com/lidarr/Lidarr
Don't filter excluded files twice
This commit is contained in:
parent
69dd1c6ec4
commit
57bcc9f4c1
|
@ -125,7 +125,6 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
var filesOnDisk = _diskProvider.GetFiles(path, searchOption);
|
var filesOnDisk = _diskProvider.GetFiles(path, searchOption);
|
||||||
|
|
||||||
var mediaFileList = filesOnDisk.Where(file => MediaFileExtensions.Extensions.Contains(Path.GetExtension(file).ToLower()))
|
var mediaFileList = filesOnDisk.Where(file => MediaFileExtensions.Extensions.Contains(Path.GetExtension(file).ToLower()))
|
||||||
.Where(file => !ExcludedFilesRegex.IsMatch(Path.GetFileName(file)))
|
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
_logger.Debug("{0} video files were found in {1}", mediaFileList.Count, path);
|
_logger.Debug("{0} video files were found in {1}", mediaFileList.Count, path);
|
||||||
|
|
Loading…
Reference in New Issue