|
|
@ -1,4 +1,5 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.CustomFormats;
|
|
|
|
using NzbDrone.Core.CustomFormats;
|
|
|
@ -45,13 +46,18 @@ namespace Radarr.Api.V3.Wanted
|
|
|
|
public PagingResource<MovieResource> GetCutoffUnmetMovies([FromQuery] PagingRequestResource paging, bool monitored = true)
|
|
|
|
public PagingResource<MovieResource> GetCutoffUnmetMovies([FromQuery] PagingRequestResource paging, bool monitored = true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var pagingResource = new PagingResource<MovieResource>(paging);
|
|
|
|
var pagingResource = new PagingResource<MovieResource>(paging);
|
|
|
|
var pagingSpec = new PagingSpec<Movie>
|
|
|
|
var pagingSpec = pagingResource.MapToPagingSpec<MovieResource, Movie>(
|
|
|
|
{
|
|
|
|
"movieMetadata.sortTitle",
|
|
|
|
Page = pagingResource.Page,
|
|
|
|
SortDirection.Ascending,
|
|
|
|
PageSize = pagingResource.PageSize,
|
|
|
|
new HashSet<string>(StringComparer.OrdinalIgnoreCase)
|
|
|
|
SortKey = pagingResource.SortKey,
|
|
|
|
{
|
|
|
|
SortDirection = pagingResource.SortDirection
|
|
|
|
"movieMetadata.sortTitle",
|
|
|
|
};
|
|
|
|
"movieMetadata.year",
|
|
|
|
|
|
|
|
"movieMetadata.inCinemas",
|
|
|
|
|
|
|
|
"movieMetadata.digitalRelease",
|
|
|
|
|
|
|
|
"movieMetadata.physicalRelease",
|
|
|
|
|
|
|
|
"movies.lastSearchTime"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
pagingSpec.FilterExpressions.Add(v => v.Monitored == monitored);
|
|
|
|
pagingSpec.FilterExpressions.Add(v => v.Monitored == monitored);
|
|
|
|
|
|
|
|
|
|
|
|