|
|
|
@ -17,13 +17,7 @@ namespace Radarr.Api.V2.Blacklist
|
|
|
|
|
|
|
|
|
|
private PagingResource<BlacklistResource> GetBlacklist(PagingResource<BlacklistResource> pagingResource)
|
|
|
|
|
{
|
|
|
|
|
var pagingSpec = new PagingSpec<NzbDrone.Core.Blacklisting.Blacklist>
|
|
|
|
|
{
|
|
|
|
|
Page = pagingResource.Page,
|
|
|
|
|
PageSize = pagingResource.PageSize,
|
|
|
|
|
SortKey = pagingResource.SortKey,
|
|
|
|
|
SortDirection = pagingResource.SortDirection
|
|
|
|
|
};
|
|
|
|
|
var pagingSpec = pagingResource.MapToPagingSpec<BlacklistResource, NzbDrone.Core.Blacklisting.Blacklist>("date", SortDirection.Descending);
|
|
|
|
|
|
|
|
|
|
return ApplyToPage(_blacklistService.Paged, pagingSpec, BlacklistResourceMapper.MapToResource);
|
|
|
|
|
}
|
|
|
|
|