diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-01-20 16:07:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-20 16:07:51 +0300 |
| commit | 2f8f064a232dd587c8d0bec9d29eb67a11ba40fe (patch) | |
| tree | 9f118bcdc31c63f3a27240dad2832e96ab8172f7 | |
| parent | da2c998e28e8428cd96951eb58ced81ba59db32f (diff) | |
| parent | f2eea89ff084111a4a90bfefdb6def68165e6025 (diff) | |
Merge pull request #2304 from pR0Ps/master
Fix pagination for DLNA root folder list
| -rw-r--r-- | CONTRIBUTORS.md | 1 | ||||
| -rw-r--r-- | Emby.Dlna/ContentDirectory/ControlHandler.cs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 458944778..800b3d51f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -32,6 +32,7 @@ - [nevado](https://github.com/nevado) - [mark-monteiro](https://github.com/mark-monteiro) - [ullmie02](https://github.com/ullmie02) + - [pR0Ps](https://github.com/pR0Ps) # Emby Contributors diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs index 4f74bb222..2068e1d2a 100644 --- a/Emby.Dlna/ContentDirectory/ControlHandler.cs +++ b/Emby.Dlna/ContentDirectory/ControlHandler.cs @@ -771,11 +771,11 @@ namespace Emby.Dlna.ContentDirectory }) .ToArray(); - return new QueryResult<ServerItem> + return ApplyPaging(new QueryResult<ServerItem> { Items = folders, TotalRecordCount = folders.Length - }; + }, startIndex, limit); } private QueryResult<ServerItem> GetTvFolders(BaseItem item, User user, StubType? stubType, SortCriteria sort, int? startIndex, int? limit) |
