|
|
|
@ -38,11 +38,11 @@ namespace Readarr.Api.V1.Wanted
|
|
|
|
|
|
|
|
|
|
if (monitored)
|
|
|
|
|
{
|
|
|
|
|
pagingSpec.FilterExpressions.Add(v => v.Monitored == false || v.Author.Value.Monitored == false);
|
|
|
|
|
pagingSpec.FilterExpressions.Add(v => v.Monitored == true && v.Author.Value.Monitored == true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
pagingSpec.FilterExpressions.Add(v => v.Monitored == true && v.Author.Value.Monitored == true);
|
|
|
|
|
pagingSpec.FilterExpressions.Add(v => v.Monitored == false || v.Author.Value.Monitored == false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return pagingSpec.ApplyToPage(_bookService.BooksWithoutFiles, v => MapToResource(v, includeAuthor));
|
|
|
|
|