Danny Michel
2022-05-12 17:43:28 -04:00
parent 178cef0d91
commit 8a2e2af2eb
4 changed files with 2 additions and 16 deletions
-3
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');
}
-11
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;
+1 -1
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'),
+1 -1
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'),