From 7534ecc396ca214f40aab8b5e848134051830480 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 28 Apr 2013 14:30:58 -0400 Subject: [PATCH 1/2] renamed video backdrops to theme videos --- .../UserLibrary/UserLibraryService.cs | 12 ++++----- MediaBrowser.Controller/Entities/BaseItem.cs | 26 +++++++++---------- .../Querying/ThemeSongsResult.cs | 2 +- .../Library/CoreResolutionIgnoreRule.cs | 4 +-- .../Library/LibraryManager.cs | 6 ++--- .../ScheduledTasks/VideoImagesTask.cs | 4 +-- MediaBrowser.WebDashboard/ApiClient.js | 4 +-- MediaBrowser.WebDashboard/packages.config | 2 +- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs index 35411935b..fc4e1bfc6 100644 --- a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs +++ b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs @@ -337,11 +337,11 @@ namespace MediaBrowser.Api.UserLibrary } /// - /// Class GetVideoBackdrops + /// Class GetThemeVideos /// - [Route("/Users/{UserId}/Items/{Id}/VideoBackdrops", "GET")] + [Route("/Users/{UserId}/Items/{Id}/ThemeVideos", "GET")] [Api(Description = "Gets video backdrops for an item")] - public class GetVideoBackdrops : IReturn + public class GetThemeVideos : IReturn { /// /// Gets or sets the user id. @@ -491,7 +491,7 @@ namespace MediaBrowser.Api.UserLibrary /// /// The request. /// System.Object. - public object Get(GetVideoBackdrops request) + public object Get(GetThemeVideos request) { var user = _userManager.GetUserById(request.UserId); @@ -502,9 +502,9 @@ namespace MediaBrowser.Api.UserLibrary var dtoBuilder = new DtoBuilder(Logger, _libraryManager, _userDataRepository); - var items = item.VideoBackdrops.Select(i => dtoBuilder.GetBaseItemDto(i, user, fields)).AsParallel().Select(t => t.Result).ToArray(); + var items = item.ThemeVideos.Select(i => dtoBuilder.GetBaseItemDto(i, user, fields)).AsParallel().Select(t => t.Result).ToArray(); - var result = new VideoBackdropsResult + var result = new ThemeVideosResult { Items = items, TotalRecordCount = items.Length, diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 8da67cb69..0479259e5 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -39,7 +39,7 @@ namespace MediaBrowser.Controller.Entities /// public const string TrailerFolderName = "trailers"; public const string ThemeSongsFolderName = "theme-music"; - public const string VideoBackdropsFolderName = "backdrops"; + public const string ThemeVideosFolderName = "backdrops"; /// /// Gets or sets the name. @@ -703,24 +703,24 @@ namespace MediaBrowser.Controller.Entities } } - private List /// List{Video}. - private List