New: Filter by Custom Format Score in Interactive Search

This commit is contained in:
Mark McDowall 2022-12-02 23:06:08 -08:00
parent 0f2ceb85bd
commit 998768bcf2
1 changed files with 8 additions and 0 deletions

View File

@ -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',