mirror of
https://github.com/Radarr/Radarr
synced 2025-01-04 06:23:32 +00:00
new filters were added, but they werent being handled via the API
This commit is contained in:
parent
72f40470a7
commit
2899bbf330
1 changed files with 1 additions and 8 deletions
|
@ -25,14 +25,7 @@ private PagingResource<MovieResource> GetCutoffUnmetMovies(PagingResource<MovieR
|
|||
{
|
||||
var pagingSpec = pagingResource.MapToPagingSpec<MovieResource, Core.Tv.Movie>("title", SortDirection.Ascending);
|
||||
|
||||
if (pagingResource.FilterKey == "monitored" && pagingResource.FilterValue == "false")
|
||||
{
|
||||
pagingSpec.FilterExpression = v => v.Monitored == false;
|
||||
}
|
||||
else
|
||||
{
|
||||
pagingSpec.FilterExpression = v => v.Monitored == true;
|
||||
}
|
||||
pagingSpec.FilterExpression = _movieService.ConstructFilterExpression(pagingResource.FilterKey, pagingResource.FilterValue);
|
||||
|
||||
var resource = ApplyToPage(_movieCutoffService.MoviesWhereCutoffUnmet, pagingSpec, v => MapToResource(v, true));
|
||||
|
||||
|
|
Loading…
Reference in a new issue