fix dlna latest lists

This commit is contained in:
Luke Pulverenti
2016-06-30 10:50:08 -04:00
parent d24fe143f6
commit b445948ebf
3 changed files with 28 additions and 10 deletions

View File

@@ -1277,6 +1277,16 @@ namespace MediaBrowser.Server.Implementations.Library
public IEnumerable<BaseItem> GetItemList(InternalItemsQuery query)
{
if (query.Recursive && query.ParentId.HasValue)
{
var parent = GetItemById(query.ParentId.Value);
if (parent != null)
{
SetTopParentIdsOrAncestors(query, new List<BaseItem> { parent });
query.ParentId = null;
}
}
if (query.User != null)
{
AddUserToQuery(query, query.User);