aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-12-14 15:01:26 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-12-14 15:01:26 -0500
commit1c1336ac084848d43f57e2b57a0568f78c278a2d (patch)
treea0571e0b997ee9859bff617df53affa04e067e01 /MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
parent9df9723fa8554df0fd51d777d3f781b0136de926 (diff)
beta fixes
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
index 7edd9541f..1628ccc32 100644
--- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
+++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs
@@ -104,6 +104,15 @@ namespace MediaBrowser.Server.Implementations.Library
}
else
{
+ if (args.Parent != null)
+ {
+ // Don't resolve these into audio files
+ if (string.Equals(_fileSystem.GetFileNameWithoutExtension(filename), BaseItem.ThemeSongFilename) && _libraryManager.IsAudioFile(filename))
+ {
+ return true;
+ }
+ }
+
// Ignore samples
if (filename.IndexOf(".sample.", StringComparison.OrdinalIgnoreCase) != -1)
{