added remote control menu

This commit is contained in:
Luke Pulverenti 2013-07-11 16:25:12 -04:00
parent 45b995def7
commit 815445c61d
3 changed files with 9 additions and 2 deletions

View File

@ -124,7 +124,7 @@ namespace MediaBrowser.Api.UserLibrary
/// <returns>IEnumerable{Tuple{System.StringFunc{System.Int32}}}.</returns>
protected override IEnumerable<IbnStub<MusicGenre>> GetAllItems(GetItemsByName request, IEnumerable<BaseItem> items)
{
var itemsList = items.Where(i => i.Genres != null).ToList();
var itemsList = items.ToList();
return itemsList
.SelectMany(i => i.Genres)

View File

@ -185,7 +185,7 @@ namespace MediaBrowser.Api.UserLibrary
var inputPersonTypes = ((GetPersons)request).PersonTypes;
var personTypes = string.IsNullOrEmpty(inputPersonTypes) ? new string[] { } : inputPersonTypes.Split(',');
var itemsList = items.Where(i => i.People != null).ToList();
var itemsList = items.ToList();
// Either get all people, or all people filtered by a specific person type
var allPeople = GetAllPeople(itemsList, personTypes);

View File

@ -18,5 +18,12 @@ namespace MediaBrowser.Model.Querying
public ThemeMediaResult ThemeVideosResult { get; set; }
public ThemeMediaResult ThemeSongsResult { get; set; }
public AllThemeMediaResult()
{
ThemeVideosResult = new ThemeMediaResult();
ThemeSongsResult = new ThemeMediaResult();
}
}
}