From c9117070e3f053e11a59946b3f4db3f880f79bce Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 28 Apr 2013 13:21:56 -0400 Subject: [PATCH] display video backdrops on detail page --- .../Library/LibraryManager.cs | 2 +- .../ScheduledTasks/VideoImagesTask.cs | 2 ++ MediaBrowser.WebDashboard/ApiClient.js | 29 +++++++++++++++++++ MediaBrowser.WebDashboard/packages.config | 2 +- 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 4323c3467c..9200a828b5 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -275,7 +275,7 @@ namespace MediaBrowser.Server.Implementations.Library var specialFeatures = items.OfType().SelectMany(i => i.SpecialFeatures).ToList(); var localTrailers = items.SelectMany(i => i.LocalTrailers).ToList(); var themeSongs = items.SelectMany(i => i.ThemeSongs).ToList(); - var videoBackdrops = items.SelectMany(i => i.ThemeSongs).ToList(); + var videoBackdrops = items.SelectMany(i => i.VideoBackdrops).ToList(); items.AddRange(specialFeatures); items.AddRange(localTrailers); diff --git a/MediaBrowser.Server.Implementations/ScheduledTasks/VideoImagesTask.cs b/MediaBrowser.Server.Implementations/ScheduledTasks/VideoImagesTask.cs index 42e1c27785..34f02fb6b9 100644 --- a/MediaBrowser.Server.Implementations/ScheduledTasks/VideoImagesTask.cs +++ b/MediaBrowser.Server.Implementations/ScheduledTasks/VideoImagesTask.cs @@ -99,11 +99,13 @@ namespace MediaBrowser.Server.Implementations.ScheduledTasks var allItems = _libraryManager.RootFolder.RecursiveChildren.ToList(); var localTrailers = allItems.SelectMany(i => i.LocalTrailers); + var videoBackdrops = allItems.SelectMany(i => i.VideoBackdrops); var videos = allItems.OfType