update deslug methods
This commit is contained in:
parent
3c43e85d87
commit
1a72e3b596
|
@ -196,9 +196,13 @@ namespace MediaBrowser.Api
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return libraryManager.RootFolder
|
var items = libraryManager.GetItemList(new InternalItemsQuery
|
||||||
.GetRecursiveChildren(i => i is IHasArtist)
|
{
|
||||||
.Cast<IHasArtist>()
|
IncludeItemTypes = new[] { typeof(Audio).Name, typeof(MusicVideo).Name, typeof(MusicAlbum).Name }
|
||||||
|
});
|
||||||
|
|
||||||
|
return items
|
||||||
|
.OfType<IHasArtist>()
|
||||||
.SelectMany(i => i.AllArtists)
|
.SelectMany(i => i.AllArtists)
|
||||||
.DistinctNames()
|
.DistinctNames()
|
||||||
.FirstOrDefault(i =>
|
.FirstOrDefault(i =>
|
||||||
|
@ -239,8 +243,12 @@ namespace MediaBrowser.Api
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
return libraryManager.RootFolder
|
var items = libraryManager.GetItemList(new InternalItemsQuery
|
||||||
.GetRecursiveChildren(i => i is Game)
|
{
|
||||||
|
IncludeItemTypes = new[] { typeof(Game).Name }
|
||||||
|
});
|
||||||
|
|
||||||
|
return items
|
||||||
.SelectMany(i => i.Genres)
|
.SelectMany(i => i.Genres)
|
||||||
.DistinctNames()
|
.DistinctNames()
|
||||||
.FirstOrDefault(i =>
|
.FirstOrDefault(i =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user