diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-12-11 23:42:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-11 23:42:02 -0500 |
| commit | 9744f5aee343a62f09ca71957aecfaa7d0a46842 (patch) | |
| tree | 86c56f2488b2ce717450afd01fa8c3ae50187063 /MediaBrowser.Api/UserLibrary/ItemsService.cs | |
| parent | f1fc6ef59f669abcae33b3a6db627683364eb8ff (diff) | |
| parent | b98e25a07e9b487a65019dc53b28d9337bafd1d4 (diff) | |
Merge pull request #2118 from chaosinnovator/master
Add StartIndex result to /Items API query
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 }; } |
