Danny Michel 2022-05-12 17:43:28 -04:00
parent 178cef0d91
commit 8a2e2af2eb
No known key found for this signature in database
GPG key ID: 1888313348A4DA5A
4 changed files with 2 additions and 16 deletions

View file

@ -42,9 +42,6 @@ import ServerConnections from '../ServerConnections';
return name.toUpperCase();
}
if (sortBy.indexOf('random') === 0) {
return Math.random(item.Random);
}
if (sortBy.indexOf('officialrating') === 0) {
return item.OfficialRating || globalize.translate('Unrated');
}

View file

@ -1070,17 +1070,6 @@ class ItemsView {
};
}
getPlayCountSortOption() {
if (this.params.type === 'Programs') {
return null;
}
return {
name: globalize.translate('Random'),
value: 'Random,SortName'
};
}
getPlayCountSortOption() {
if (this.params.type === 'Programs') {
return null;

View file

@ -198,7 +198,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
name: globalize.translate('Name'),
id: 'SortName,ProductionYear'
}, {
name: globalize.translate('Random'),
name: globalize.translate('OptionRandom'),
id: 'Random'
}, {
name: globalize.translate('OptionImdbRating'),

View file

@ -253,7 +253,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
name: globalize.translate('Name'),
id: 'SortName'
}, {
name: globalize.translate('Random'),
name: globalize.translate('OptionRandom'),
id: 'Random'
}, {
name: globalize.translate('OptionImdbRating'),