mirror of
https://github.com/Readarr/Readarr
synced 2025-12-26 10:14:51 +01:00
parent
8f965a7cd5
commit
7be2effa05
1 changed files with 10 additions and 0 deletions
|
|
@ -87,6 +87,12 @@ export const filterPredicates = {
|
|||
return predicate(item.ratings.value * 10, filterValue);
|
||||
},
|
||||
|
||||
path: function(item, filterValue, type) {
|
||||
const predicate = filterTypePredicates[type];
|
||||
|
||||
return predicate(item.author.path, filterValue);
|
||||
},
|
||||
|
||||
bookFileCount: function(item, filterValue, type) {
|
||||
const predicate = filterTypePredicates[type];
|
||||
const bookCount = item.statistics ? item.statistics.bookFileCount : 0;
|
||||
|
|
@ -111,6 +117,10 @@ export const sortPredicates = {
|
|||
return statistics.sizeOnDisk || 0;
|
||||
},
|
||||
|
||||
path: function(item) {
|
||||
return item.author.path;
|
||||
},
|
||||
|
||||
series: function(item) {
|
||||
return item.seriesTitle;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue