aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-19 11:33:49 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-19 11:33:49 -0400
commit8523d0aa2b01befc46e9fe629a42f275d015f8e3 (patch)
treeefe155c9271582432bc91e4ebd9a22f0bfdba12f /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
parent79a7e907d4cc0993d05385892161eb39acc83df0 (diff)
fix dlna playlist
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
index 3ead061ca..ec94e16db 100644
--- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
+++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
@@ -83,8 +83,16 @@ namespace MediaBrowser.Server.Implementations.Intros
if (config.EnableIntrosFromMoviesInLibrary)
{
- var itemsWithTrailers = user.RootFolder
- .GetRecursiveChildren(user, i =>
+ var inputItems = _libraryManager.GetItems(new InternalItemsQuery
+ {
+ IncludeItemTypes = new[] { typeof(Movie).Name },
+
+ User = user
+
+ }).Items;
+
+ var itemsWithTrailers = inputItems
+ .Where(i =>
{
var hasTrailers = i as IHasTrailers;