Don't filter excluded files twice

This commit is contained in:
Mark McDowall 2015-05-14 18:33:44 -07:00
parent 69dd1c6ec4
commit 57bcc9f4c1
1 changed files with 0 additions and 1 deletions

View File

@ -125,7 +125,6 @@ namespace NzbDrone.Core.MediaFiles
var filesOnDisk = _diskProvider.GetFiles(path, searchOption);
var mediaFileList = filesOnDisk.Where(file => MediaFileExtensions.Extensions.Contains(Path.GetExtension(file).ToLower()))
.Where(file => !ExcludedFilesRegex.IsMatch(Path.GetFileName(file)))
.ToList();
_logger.Debug("{0} video files were found in {1}", mediaFileList.Count, path);