|
|
@ -366,11 +366,13 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
|
|
|
|
|
|
|
var dtoOptions = GetDtoOptions(_authContext, request);
|
|
|
|
var dtoOptions = GetDtoOptions(_authContext, request);
|
|
|
|
|
|
|
|
|
|
|
|
var dtos = item.GetExtras(new[] { ExtraType.Trailer })
|
|
|
|
var dtosExtras = item.GetExtras(new[] { ExtraType.Trailer })
|
|
|
|
.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item))
|
|
|
|
.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item));
|
|
|
|
.ToArray();
|
|
|
|
|
|
|
|
|
|
|
|
var dtosTrailers = item.GetTrailers()
|
|
|
|
|
|
|
|
.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item));
|
|
|
|
|
|
|
|
|
|
|
|
return ToOptimizedResult(dtos);
|
|
|
|
return ToOptimizedResult(dtosExtras.Concat(dtosTrailers).ToArray());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|