mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 11:58:20 -07:00
Merge branch 'sorted-media-sources' of https://github.com/DesertCookie/jellyfin-web into sorted-media-sources
This commit is contained in:
commit
2993fb7419
@ -172,7 +172,7 @@ function renderTrackSelections(page, instance, item, forceReload) {
|
|||||||
const resolutionNames = [];
|
const resolutionNames = [];
|
||||||
const sourceNames = [];
|
const sourceNames = [];
|
||||||
mediaSources.forEach(function (v) {
|
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));
|
resolutionNames.sort((a, b) => parseInt(b.Name, 10) - parseInt(a.Name, 10));
|
||||||
|
Loading…
Reference in New Issue
Block a user