added remote control menu
This commit is contained in:
parent
45b995def7
commit
815445c61d
|
@ -124,7 +124,7 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
/// <returns>IEnumerable{Tuple{System.StringFunc{System.Int32}}}.</returns>
|
/// <returns>IEnumerable{Tuple{System.StringFunc{System.Int32}}}.</returns>
|
||||||
protected override IEnumerable<IbnStub<MusicGenre>> GetAllItems(GetItemsByName request, IEnumerable<BaseItem> items)
|
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
|
return itemsList
|
||||||
.SelectMany(i => i.Genres)
|
.SelectMany(i => i.Genres)
|
||||||
|
|
|
@ -185,7 +185,7 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
var inputPersonTypes = ((GetPersons)request).PersonTypes;
|
var inputPersonTypes = ((GetPersons)request).PersonTypes;
|
||||||
var personTypes = string.IsNullOrEmpty(inputPersonTypes) ? new string[] { } : inputPersonTypes.Split(',');
|
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
|
// Either get all people, or all people filtered by a specific person type
|
||||||
var allPeople = GetAllPeople(itemsList, personTypes);
|
var allPeople = GetAllPeople(itemsList, personTypes);
|
||||||
|
|
|
@ -18,5 +18,12 @@ namespace MediaBrowser.Model.Querying
|
||||||
public ThemeMediaResult ThemeVideosResult { get; set; }
|
public ThemeMediaResult ThemeVideosResult { get; set; }
|
||||||
|
|
||||||
public ThemeMediaResult ThemeSongsResult { get; set; }
|
public ThemeMediaResult ThemeSongsResult { get; set; }
|
||||||
|
|
||||||
|
public AllThemeMediaResult()
|
||||||
|
{
|
||||||
|
ThemeVideosResult = new ThemeMediaResult();
|
||||||
|
|
||||||
|
ThemeSongsResult = new ThemeMediaResult();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user