mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue