diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-19 11:16:09 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-19 11:16:09 +0200 |
| commit | a73e1f18b670ac7c9f0f9c3049e7fbbeddb61942 (patch) | |
| tree | 962f652206e56f01b3c88f1f9af19ac58c7199d7 /MediaBrowser.Api/UserLibrary/ItemsService.cs | |
| parent | b76f570583d607898064e21b6431aa30bffe97f7 (diff) | |
Minor improvements
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 }; } |
