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