|
|
@ -31,6 +31,7 @@ export const defaultState = {
|
|
|
|
age: function(item, direction) {
|
|
|
|
age: function(item, direction) {
|
|
|
|
return item.ageMinutes;
|
|
|
|
return item.ageMinutes;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
peers: function(item, direction) {
|
|
|
|
peers: function(item, direction) {
|
|
|
|
const seeders = item.seeders || 0;
|
|
|
|
const seeders = item.seeders || 0;
|
|
|
|
const leechers = item.leechers || 0;
|
|
|
|
const leechers = item.leechers || 0;
|
|
|
@ -45,6 +46,7 @@ export const defaultState = {
|
|
|
|
|
|
|
|
|
|
|
|
return item.languages[0].id;
|
|
|
|
return item.languages[0].id;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
rejections: function(item, direction) {
|
|
|
|
rejections: function(item, direction) {
|
|
|
|
const rejections = item.rejections;
|
|
|
|
const rejections = item.rejections;
|
|
|
|
const releaseWeight = item.releaseWeight;
|
|
|
|
const releaseWeight = item.releaseWeight;
|
|
|
@ -110,6 +112,7 @@ export const defaultState = {
|
|
|
|
|
|
|
|
|
|
|
|
return predicate(languages, filterValue);
|
|
|
|
return predicate(languages, filterValue);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
rejectionCount: function(item, value, type) {
|
|
|
|
rejectionCount: function(item, value, type) {
|
|
|
|
const rejectionCount = item.rejections.length;
|
|
|
|
const rejectionCount = item.rejections.length;
|
|
|
|
|
|
|
|
|
|
|
@ -231,6 +234,11 @@ export const defaultState = {
|
|
|
|
return genreList.sort(sortByName);
|
|
|
|
return genreList.sort(sortByName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: 'customFormatScore',
|
|
|
|
|
|
|
|
label: 'Custom Format Score',
|
|
|
|
|
|
|
|
type: filterBuilderTypes.NUMBER
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: 'rejectionCount',
|
|
|
|
name: 'rejectionCount',
|
|
|
|
label: 'Rejection Count',
|
|
|
|
label: 'Rejection Count',
|
|
|
|