Merge pull request #2332 from pR0Ps/bugfix/dlna

Fix another issue with DLNA responses not properly paginating
This commit is contained in:
dkanada 2020-01-27 23:18:33 +09:00 committed by GitHub
commit 1ed92b05fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -60,14 +60,7 @@ namespace MediaBrowser.Controller.Entities
PresetViews = query.PresetViews PresetViews = query.PresetViews
}); });
var itemsArray = result; return UserViewBuilder.SortAndPage(result, null, query, LibraryManager, true);
var totalCount = itemsArray.Length;
return new QueryResult<BaseItem>
{
TotalRecordCount = totalCount,
Items = itemsArray //TODO Fix The co-variant conversion between Folder[] and BaseItem[], this can generate runtime issues.
};
} }
public override int GetChildCount(User user) public override int GetChildCount(User user)