diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-01-27 23:18:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-27 23:18:33 +0900 |
| commit | 1ed92b05fb19a75f0fbc02def246dbc068687488 (patch) | |
| tree | 894145c9a37c8d54d2c87beffe58e491a3bcb36b /MediaBrowser.Controller/Entities/UserRootFolder.cs | |
| parent | 8c520160cc7726b1fdea4420d1c2c437c48e7a89 (diff) | |
| parent | d3de91dab67bbe7770bf74e97699b966f30822c9 (diff) | |
Merge pull request #2332 from pR0Ps/bugfix/dlna
Fix another issue with DLNA responses not properly paginating
Diffstat (limited to 'MediaBrowser.Controller/Entities/UserRootFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/UserRootFolder.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/MediaBrowser.Controller/Entities/UserRootFolder.cs b/MediaBrowser.Controller/Entities/UserRootFolder.cs index 7fcf48a48..8a68f830c 100644 --- a/MediaBrowser.Controller/Entities/UserRootFolder.cs +++ b/MediaBrowser.Controller/Entities/UserRootFolder.cs @@ -60,14 +60,7 @@ namespace MediaBrowser.Controller.Entities PresetViews = query.PresetViews }); - var itemsArray = result; - 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. - }; + return UserViewBuilder.SortAndPage(result, null, query, LibraryManager, true); } public override int GetChildCount(User user) |
