From 9a5594149e1459d1851f57ef215f98cf68b4a0b8 Mon Sep 17 00:00:00 2001 From: DesertCookie Date: Sun, 18 Oct 2020 11:53:31 +0200 Subject: [PATCH] Update src/controllers/itemDetails/index.js Co-authored-by: Bill Thornton --- src/controllers/itemDetails/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));