diff options
| author | Patrick Barron <18354464+barronpm@users.noreply.github.com> | 2020-04-22 13:44:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 13:44:20 +0000 |
| commit | 7586c6022428fd4e1296653a5c281d83b64c7f8e (patch) | |
| tree | 539c9ca4b74a8027d0e636f7a86c587bd74b05a3 /MediaBrowser.Api/UserLibrary/ItemsService.cs | |
| parent | f26f44acaf86bb35ff1d2be7cb37a57dee7a47cf (diff) | |
| parent | a85b1dcba663fe3bbb2441380cd8da382c92f2bd (diff) | |
Merge branch 'master' into warnings-cleanup1
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
| -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 }; } |
