diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-01 18:18:27 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-01 18:18:27 -0400 |
| commit | dbf214883c0199be4a7a1bc02145c014fc029c0e (patch) | |
| tree | 9cf973d462dfb006d078d1f2ebea439a8bb87bd6 /MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | |
| parent | 9bf346dacab27cc31fdb3308c23fc86a400c717c (diff) | |
don't allow theme songs to get mixed in with children
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs index 6112862af..612dc0d42 100644 --- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs +++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs @@ -77,7 +77,8 @@ namespace MediaBrowser.Server.Implementations.Library } // Ignore trailer folders but allow it at the collection level - if (string.Equals(filename, BaseItem.TrailerFolderName, StringComparison.OrdinalIgnoreCase) && !(args.Parent is AggregateFolder) && !(args.Parent is UserRootFolder)) + if (string.Equals(filename, BaseItem.TrailerFolderName, StringComparison.OrdinalIgnoreCase) && + !(args.Parent is AggregateFolder) && !(args.Parent is UserRootFolder)) { return true; } @@ -92,6 +93,18 @@ namespace MediaBrowser.Server.Implementations.Library return true; } } + else + { + if (args.Parent != null) + { + var filename = args.FileInfo.Name; + + if (string.Equals(Path.GetFileNameWithoutExtension(filename), BaseItem.ThemeSongFilename) && EntityResolutionHelper.IsAudioFile(filename)) + { + return true; + } + } + } return false; } |
