mirror of
https://github.com/Radarr/Radarr
synced 2025-02-22 14:21:14 +00:00
New: Ignore 'Other' subfolder when scanning disk
Closes #9718 (cherry picked from commit e1c6722aad1e35a1e2371bc47f399b57e4f96f27)
This commit is contained in:
parent
937ebcdac3
commit
af066da4ff
2 changed files with 2 additions and 1 deletions
|
@ -178,6 +178,7 @@ public void should_not_scan_various_extras_subfolders()
|
|||
Path.Combine(_movie.Path, "Scenes", "file7.mkv").AsOsAgnostic(),
|
||||
Path.Combine(_movie.Path, "Shorts", "file8.mkv").AsOsAgnostic(),
|
||||
Path.Combine(_movie.Path, "Trailers", "file9.mkv").AsOsAgnostic(),
|
||||
Path.Combine(_movie.Path, "Other", "file9.mkv").AsOsAgnostic(),
|
||||
Path.Combine(_movie.Path, "The Count of Monte Cristo (2002) (1080p BluRay x265 10bit Tigole).mkv").AsOsAgnostic(),
|
||||
});
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public DiskScanService(IDiskProvider diskProvider,
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
private static readonly Regex ExcludedExtrasSubFolderRegex = new Regex(@"(?:\\|\/|^)(?:extras|extrafanart|behind the scenes|deleted scenes|featurettes|interviews|scenes|sample[s]?|shorts|trailers)(?:\\|\/)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private static readonly Regex ExcludedExtrasSubFolderRegex = new Regex(@"(?:\\|\/|^)(?:extras|extrafanart|behind the scenes|deleted scenes|featurettes|interviews|other|scenes|sample[s]?|shorts|trailers)(?:\\|\/)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private static readonly Regex ExcludedSubFoldersRegex = new Regex(@"(?:\\|\/|^)(?:@eadir|\.@__thumb|plex versions|\.[^\\/]+)(?:\\|\/)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private static readonly Regex ExcludedExtraFilesRegex = new Regex(@"(-(trailer|other|behindthescenes|deleted|featurette|interview|scene|short)\.[^.]+$)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
private static readonly Regex ExcludedFilesRegex = new Regex(@"^\._|^Thumbs\.db$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
|
|
Loading…
Reference in a new issue