fix inverted condition

This commit is contained in:
crobibero 2020-12-01 11:10:56 -07:00
parent 821ad79992
commit 2055d49701

View File

@ -156,7 +156,7 @@ namespace Emby.Server.Implementations.Library
ExcludeItemTypes = excludeItemTypes.ToArray(),
IncludeItemTypes = includeItemTypes.ToArray(),
Limit = query.Limit,
IncludeItemsByName = query.ParentId.HasValue,
IncludeItemsByName = !query.ParentId.HasValue,
ParentId = query.ParentId ?? Guid.Empty,
OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) },
Recursive = true,