Merge branch 'sorted-media-sources' of https://github.com/DesertCookie/jellyfin-web into sorted-media-sources

This commit is contained in:
DesertCookie 2020-10-30 12:37:29 +01:00
commit 2993fb7419

View File

@ -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));