New: Filter by Custom Format Score in Interactive Search
This commit is contained in:
parent
0f2ceb85bd
commit
998768bcf2
|
@ -31,6 +31,7 @@ export const defaultState = {
|
|||
age: function(item, direction) {
|
||||
return item.ageMinutes;
|
||||
},
|
||||
|
||||
peers: function(item, direction) {
|
||||
const seeders = item.seeders || 0;
|
||||
const leechers = item.leechers || 0;
|
||||
|
@ -45,6 +46,7 @@ export const defaultState = {
|
|||
|
||||
return item.languages[0].id;
|
||||
},
|
||||
|
||||
rejections: function(item, direction) {
|
||||
const rejections = item.rejections;
|
||||
const releaseWeight = item.releaseWeight;
|
||||
|
@ -110,6 +112,7 @@ export const defaultState = {
|
|||
|
||||
return predicate(languages, filterValue);
|
||||
},
|
||||
|
||||
rejectionCount: function(item, value, type) {
|
||||
const rejectionCount = item.rejections.length;
|
||||
|
||||
|
@ -231,6 +234,11 @@ export const defaultState = {
|
|||
return genreList.sort(sortByName);
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'customFormatScore',
|
||||
label: 'Custom Format Score',
|
||||
type: filterBuilderTypes.NUMBER
|
||||
},
|
||||
{
|
||||
name: 'rejectionCount',
|
||||
label: 'Rejection Count',
|
||||
|
|
Loading…
Reference in New Issue