1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 00:09:37 +02:00

Fixed: Language sort on Interactive Search page

This commit is contained in:
Qstick 2020-10-18 22:11:19 -04:00
parent 959d63b4eb
commit 31ca413fc7
2 changed files with 10 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const columns = [
isVisible: true
},
{
name: 'languageWeight',
name: 'languages',
label: translate('Language'),
isSortable: true,
isVisible: true

View File

@ -29,6 +29,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;
@ -36,6 +37,14 @@ export const defaultState = {
return seeders * 1000000 + leechers;
},
languages: function(item, direction) {
if (item.languages.length > 1) {
return 10000;
}
return item.languages[0].id;
},
indexerFlags: function(item, direction) {
const indexerFlags = item.indexerFlags;
const releaseWeight = item.releaseWeight;