diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index 64b4f2f777..5be9762622 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -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));