diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-12-12 16:34:34 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-12-12 16:34:34 +0100 |
| commit | baadb504bbb0d8aa3de37e295afdcd40825d7a9d (patch) | |
| tree | 65aac3fa3478fd78db48b6c8d11b7f3cb0e3d521 /MediaBrowser.Api/UserLibrary/ItemsService.cs | |
| parent | 0bf8bfbb0cfd67b387a574148022f3c554ff5173 (diff) | |
| parent | 96a5dda9ffe714e170e97bb93d72d68ed55791bb (diff) | |
Merge branch 'master' into mediaencoding
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/ItemsService.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index 81142b728..c7b505171 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -119,6 +119,7 @@ namespace MediaBrowser.Api.UserLibrary var result = new QueryResult<BaseItemDto> { + StartIndex = request.StartIndex.GetValueOrDefault(), TotalRecordCount = itemsResult.TotalRecordCount, Items = returnItems }; @@ -169,6 +170,7 @@ namespace MediaBrowser.Api.UserLibrary return new QueryResult<BaseItemDto> { + StartIndex = request.StartIndex.GetValueOrDefault(), TotalRecordCount = result.TotalRecordCount, Items = dtoList }; @@ -229,7 +231,8 @@ namespace MediaBrowser.Api.UserLibrary return new QueryResult<BaseItem> { Items = Array.Empty<BaseItem>(), - TotalRecordCount = 0 + TotalRecordCount = 0, + StartIndex = 0 }; } @@ -242,7 +245,8 @@ namespace MediaBrowser.Api.UserLibrary return new QueryResult<BaseItem> { Items = itemsArray, - TotalRecordCount = itemsArray.Length + TotalRecordCount = itemsArray.Length, + StartIndex = 0 }; } |
