Fixed: Rescan Folder task ignores .jpg, .nfo, and .lrc files which were causing slow rescans on the scheduled task

This commit is contained in:
PearsonFlyer 2024-01-24 12:52:53 -05:00
commit bcd1ab7217

View file

@ -35,7 +35,7 @@ namespace NzbDrone.Core.MediaFiles
IExecute<RescanFoldersCommand> IExecute<RescanFoldersCommand>
{ {
public static readonly Regex ExcludedSubFoldersRegex = new Regex(@"(?:\\|\/|^)(?:extras|@eadir|\.@__thumb|extrafanart|plex versions|\.[^\\/]+)(?:\\|\/)", RegexOptions.Compiled | RegexOptions.IgnoreCase); public static readonly Regex ExcludedSubFoldersRegex = new Regex(@"(?:\\|\/|^)(?:extras|@eadir|\.@__thumb|extrafanart|plex versions|\.[^\\/]+)(?:\\|\/)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static readonly Regex ExcludedFilesRegex = new Regex(@"^\._|^Thumbs\.db$|^\.DS_store$|\.partial~$", RegexOptions.Compiled | RegexOptions.IgnoreCase); public static readonly Regex ExcludedFilesRegex = new Regex(@"^\._|^Thumbs\.db$|^\.DS_store$|\.partial~$|\.jpg|\.nfo|\.lrc", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private readonly IConfigService _configService; private readonly IConfigService _configService;
private readonly IDiskProvider _diskProvider; private readonly IDiskProvider _diskProvider;