diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-19 11:33:49 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-19 11:33:49 -0400 |
| commit | 8523d0aa2b01befc46e9fe629a42f275d015f8e3 (patch) | |
| tree | efe155c9271582432bc91e4ebd9a22f0bfdba12f /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs | |
| parent | 79a7e907d4cc0993d05385892161eb39acc83df0 (diff) | |
fix dlna playlist
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs | 12 |
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; |
