diff --git a/src/components/listview/listview.js b/src/components/listview/listview.js index 1cbbc3a8ec..ee75656367 100644 --- a/src/components/listview/listview.js +++ b/src/components/listview/listview.js @@ -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'); } diff --git a/src/controllers/list.js b/src/controllers/list.js index 67f781f353..c5ff9bdb34 100644 --- a/src/controllers/list.js +++ b/src/controllers/list.js @@ -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; diff --git a/src/controllers/movies/movies.js b/src/controllers/movies/movies.js index 5990eb7e58..0dbf314cc4 100644 --- a/src/controllers/movies/movies.js +++ b/src/controllers/movies/movies.js @@ -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'), diff --git a/src/controllers/shows/tvshows.js b/src/controllers/shows/tvshows.js index dde7a0bc31..ba18ecec7f 100644 --- a/src/controllers/shows/tvshows.js +++ b/src/controllers/shows/tvshows.js @@ -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'),