mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 08:33:21 +00:00
Don't filter excluded files twice
This commit is contained in:
parent
69dd1c6ec4
commit
57bcc9f4c1
1 changed files with 0 additions and 1 deletions
|
@ -125,7 +125,6 @@ public string[] GetVideoFiles(string path, bool allDirectories = true)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue