mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 10:14:14 -04:00
add additional ignores from librarymonitor
This commit is contained in:
parent
c3f947f4da
commit
2a6a6d6911
@ -46,6 +46,14 @@ namespace MediaBrowser.Server.Implementations.IO
|
|||||||
"TempSBE"
|
"TempSBE"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private readonly IReadOnlyList<string> _alwaysIgnoreSubstrings = new List<string>
|
||||||
|
{
|
||||||
|
// Synology
|
||||||
|
"@eaDir",
|
||||||
|
".wd_tv",
|
||||||
|
".actors"
|
||||||
|
};
|
||||||
|
|
||||||
private readonly IReadOnlyList<string> _alwaysIgnoreExtensions = new List<string>
|
private readonly IReadOnlyList<string> _alwaysIgnoreExtensions = new List<string>
|
||||||
{
|
{
|
||||||
// thumbs.db
|
// thumbs.db
|
||||||
@ -424,7 +432,8 @@ namespace MediaBrowser.Server.Implementations.IO
|
|||||||
|
|
||||||
var monitorPath = !string.IsNullOrEmpty(filename) &&
|
var monitorPath = !string.IsNullOrEmpty(filename) &&
|
||||||
!_alwaysIgnoreFiles.Contains(filename, StringComparer.OrdinalIgnoreCase) &&
|
!_alwaysIgnoreFiles.Contains(filename, StringComparer.OrdinalIgnoreCase) &&
|
||||||
!_alwaysIgnoreExtensions.Contains(Path.GetExtension(path) ?? string.Empty, StringComparer.OrdinalIgnoreCase);
|
!_alwaysIgnoreExtensions.Contains(Path.GetExtension(path) ?? string.Empty, StringComparer.OrdinalIgnoreCase) &&
|
||||||
|
_alwaysIgnoreSubstrings.All(i => path.IndexOf(i, StringComparison.OrdinalIgnoreCase) == -1);
|
||||||
|
|
||||||
// Ignore certain files
|
// Ignore certain files
|
||||||
var tempIgnorePaths = _tempIgnoredPaths.Keys.ToList();
|
var tempIgnorePaths = _tempIgnoredPaths.Keys.ToList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user