diff options
Diffstat (limited to 'MediaBrowser.Api/PlaylistService.cs')
| -rw-r--r-- | MediaBrowser.Api/PlaylistService.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Api/PlaylistService.cs b/MediaBrowser.Api/PlaylistService.cs index 9f37bb70a..aef16e442 100644 --- a/MediaBrowser.Api/PlaylistService.cs +++ b/MediaBrowser.Api/PlaylistService.cs @@ -8,6 +8,7 @@ using MediaBrowser.Model.Querying; using System.Linq; using System.Threading.Tasks; using MediaBrowser.Model.Services; +using MediaBrowser.Model.Extensions; namespace MediaBrowser.Api { @@ -192,8 +193,10 @@ namespace MediaBrowser.Api var dtoOptions = GetDtoOptions(_authContext, request); - var dtos = (await _dtoService.GetBaseItemDtos(items.Select(i => i.Item2), dtoOptions, user).ConfigureAwait(false)) - .ToArray(); + var returnList = (await _dtoService.GetBaseItemDtos(items.Select(i => i.Item2), dtoOptions, user) + .ConfigureAwait(false)); + var dtos = returnList + .ToArray(returnList.Count); var index = 0; foreach (var item in dtos) |
