aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-17 11:37:16 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-17 11:37:16 -0500
commit664bcadbad0c05a60d83f5b8e24801534643a5e1 (patch)
tree0a12f6a7f0627b7cd33634ad4a1f2da23fc2675c /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
parent51d00cf3fd123534995153e4fbc7a3c7a0a8a5c3 (diff)
update cinema mode config page
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
index e17739d53..2228455c1 100644
--- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
+++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
@@ -237,13 +237,21 @@ namespace MediaBrowser.Server.Implementations.Intros
{
options = options ?? GetOptions();
- if (string.IsNullOrWhiteSpace(options.CustomIntroPath))
+ var list = new List<string>();
+
+ if (!string.IsNullOrWhiteSpace(options.CustomIntroPath))
{
- return new List<string>();
+ list.AddRange(_fileSystem.GetFilePaths(options.CustomIntroPath, true)
+ .Where(_libraryManager.IsVideoFile));
}
- return _fileSystem.GetFilePaths(options.CustomIntroPath, true)
- .Where(_libraryManager.IsVideoFile);
+ if (!string.IsNullOrWhiteSpace(options.CodecIntroPath))
+ {
+ list.AddRange(_fileSystem.GetFilePaths(options.CodecIntroPath, true)
+ .Where(_libraryManager.IsVideoFile));
+ }
+
+ return list.Distinct(StringComparer.OrdinalIgnoreCase);
}
private bool FilterByParentalRating(int? ratingLevel, BaseItem item)