|
|
|
@ -119,6 +119,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
|
|
|
|
|
var result = new QueryResult<BaseItemDto>
|
|
|
|
|
{
|
|
|
|
|
StartIndex = request.StartIndex.GetValueOrDefault(),
|
|
|
|
|
TotalRecordCount = itemsResult.TotalRecordCount,
|
|
|
|
|
Items = returnItems
|
|
|
|
|
};
|
|
|
|
@ -169,6 +170,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
|
|
|
|
|
return new QueryResult<BaseItemDto>
|
|
|
|
|
{
|
|
|
|
|
StartIndex = request.StartIndex.GetValueOrDefault(),
|
|
|
|
|
TotalRecordCount = result.TotalRecordCount,
|
|
|
|
|
Items = dtoList
|
|
|
|
|
};
|
|
|
|
@ -229,7 +231,8 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
return new QueryResult<BaseItem>
|
|
|
|
|
{
|
|
|
|
|
Items = Array.Empty<BaseItem>(),
|
|
|
|
|
TotalRecordCount = 0
|
|
|
|
|
TotalRecordCount = 0,
|
|
|
|
|
StartIndex = 0
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -242,7 +245,8 @@ namespace MediaBrowser.Api.UserLibrary
|
|
|
|
|
return new QueryResult<BaseItem>
|
|
|
|
|
{
|
|
|
|
|
Items = itemsArray,
|
|
|
|
|
TotalRecordCount = itemsArray.Length
|
|
|
|
|
TotalRecordCount = itemsArray.Length,
|
|
|
|
|
StartIndex = 0
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|