aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-01-27 23:18:33 +0900
committerGitHub <noreply@github.com>2020-01-27 23:18:33 +0900
commit1ed92b05fb19a75f0fbc02def246dbc068687488 (patch)
tree894145c9a37c8d54d2c87beffe58e491a3bcb36b
parent8c520160cc7726b1fdea4420d1c2c437c48e7a89 (diff)
parentd3de91dab67bbe7770bf74e97699b966f30822c9 (diff)
Merge pull request #2332 from pR0Ps/bugfix/dlna
Fix another issue with DLNA responses not properly paginating
-rw-r--r--MediaBrowser.Controller/Entities/UserRootFolder.cs9
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)