mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 11:58:20 -07:00
Update src/controllers/itemDetails/index.js
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
746a6231fa
commit
9a5594149e
@ -172,7 +172,7 @@ function renderTrackSelections(page, instance, item, forceReload) {
|
||||
var resolutionNames = [];
|
||||
var sourceNames = [];
|
||||
mediaSources.forEach(function (v) {
|
||||
((v.Name.endsWith('p') || v.Name.endsWith('i'))) && !Number.isNaN(parseInt(v.Name, 10) ? resolutionNames.push(v) : sourceNames.push(v);
|
||||
(v.Name.endsWith('p') || v.Name.endsWith('i')) && !Number.isNaN(parseInt(v.Name, 10)) ? resolutionNames.push(v) : sourceNames.push(v);
|
||||
});
|
||||
|
||||
resolutionNames.sort((a, b) => parseInt(b.Name, 10) - parseInt(a.Name, 10));
|
||||
|
Loading…
Reference in New Issue
Block a user