|
|
|
@ -404,13 +404,6 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
/// <param name="request">The request.</param>
|
|
|
|
|
/// <returns>System.Object.</returns>
|
|
|
|
|
public object Get(GetLocalTrailers request)
|
|
|
|
|
{
|
|
|
|
|
var result = GetAsync(request);
|
|
|
|
|
|
|
|
|
|
return ToOptimizedSerializedResultUsingCache(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private List<BaseItemDto> GetAsync(GetLocalTrailers request)
|
|
|
|
|
{
|
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
|
|
|
|
|
@ -430,7 +423,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
.Select(_libraryManager.GetItemById)
|
|
|
|
|
.Select(i => _dtoService.GetBaseItemDto(i, dtoOptions, user, item));
|
|
|
|
|
|
|
|
|
|
return dtos.ToList();
|
|
|
|
|
return ToOptimizedSerializedResultUsingCache(dtos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|