mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge branch 'sorted-media-sources' of https://github.com/DesertCookie/jellyfin-web into sorted-media-sources
This commit is contained in:
commit
2993fb7419
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ function renderTrackSelections(page, instance, item, forceReload) {
|
|||
const resolutionNames = [];
|
||||
const 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