Merge pull request #1599 from MediaBrowser/beta

Beta
This commit is contained in:
Luke 2016-03-26 13:18:48 -04:00
commit 992fd591a7

View File

@ -272,6 +272,11 @@ namespace MediaBrowser.Server.Implementations.Library
.ToArray(); .ToArray();
} }
if (parentIds.Length == 0)
{
return new List<BaseItem>();
}
var excludeItemTypes = includeItemTypes.Length == 0 ? new[] var excludeItemTypes = includeItemTypes.Length == 0 ? new[]
{ {
typeof(Person).Name, typeof(Studio).Name, typeof(Year).Name, typeof(GameGenre).Name, typeof(MusicGenre).Name, typeof(Genre).Name typeof(Person).Name, typeof(Studio).Name, typeof(Year).Name, typeof(GameGenre).Name, typeof(MusicGenre).Name, typeof(Genre).Name