diff options
| author | crobibero <cody@robibe.ro> | 2020-04-21 15:12:04 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-04-21 15:12:04 -0600 |
| commit | 14c94b4e5f6fd7e9ed3483bc2d582f68f8a21c67 (patch) | |
| tree | f5082cbda8d5f207bd00cf06f4f4e32f05c127e9 /MediaBrowser.Api/UserLibrary | |
| parent | fff2a40ffc4e5010b26143185c68d221225c1a22 (diff) | |
| parent | a2f19eadf739297cbbc99c9082b0175e8b881054 (diff) | |
Merge branch 'api-migration' of https://github.com/jellyfin/jellyfin into redoc
Diffstat (limited to 'MediaBrowser.Api/UserLibrary')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/ItemsService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index ac59c3030..c4d44042b 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -242,11 +242,11 @@ namespace MediaBrowser.Api.UserLibrary return folder.GetItems(GetItemsQuery(request, dtoOptions, user)); } - var itemsArray = folder.GetChildren(user, true).ToArray(); + var itemsArray = folder.GetChildren(user, true); return new QueryResult<BaseItem> { Items = itemsArray, - TotalRecordCount = itemsArray.Length, + TotalRecordCount = itemsArray.Count, StartIndex = 0 }; } |
