diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-12-20 19:43:57 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-12-20 19:43:57 +0100 |
| commit | 7f5a174dff98c6071fc292a41bba63d1435c2ddd (patch) | |
| tree | 8831a98e9e938420b5a4198f621a3dd57847b6b1 /MediaBrowser.Api/UserLibrary/ItemsService.cs | |
| parent | 137db45fc7a91d75d81023709b77277f34958ff0 (diff) | |
| parent | 06dfa2e687304874d4c8de8f7c95354b3d51225c (diff) | |
Merge branch 'master' into warn12
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 }; } |
