diff options
| author | SL1288 <SL1288@SL1288.SL1288> | 2019-08-19 18:40:39 +0200 |
|---|---|---|
| committer | SL1288 <SL1288@SL1288.SL1288> | 2019-08-19 18:56:41 +0200 |
| commit | fdc24ec2eeffec4334c705631439de72cf6c8bdd (patch) | |
| tree | 37fa3c3fcef957a365d648084aad9c723712c8e4 /MediaBrowser.Api/UserLibrary/UserLibraryService.cs | |
| parent | c8474f734c779d61444a6e48de9ff7825d7904c9 (diff) | |
Fix LocalTrailers playback.
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/UserLibraryService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/UserLibraryService.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs index a9b06095d..6eaa1b692 100644 --- a/MediaBrowser.Api/UserLibrary/UserLibraryService.cs +++ b/MediaBrowser.Api/UserLibrary/UserLibraryService.cs @@ -366,11 +366,13 @@ namespace MediaBrowser.Api.UserLibrary var dtoOptions = GetDtoOptions(_authContext, request); - var dtos = item.GetExtras(new[] { ExtraType.Trailer }) - .Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item)) - .ToArray(); + var dtosExtras = item.GetExtras(new[] { ExtraType.Trailer }) + .Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item)); + + var dtosTrailers = item.GetTrailers() + .Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item)); - return ToOptimizedResult(dtos); + return ToOptimizedResult(dtosExtras.Concat(dtosTrailers).ToArray()); } /// <summary> |
