From cca60511d0ffbc499a4e2d2c007034b39f38862b Mon Sep 17 00:00:00 2001 From: sparky8251 Date: Sat, 17 Oct 2020 20:21:44 -0400 Subject: [PATCH] Please Mr Linter? --- src/components/qualityOptions.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/qualityOptions.js b/src/components/qualityOptions.js index 098ced3ae..29e8e3d58 100644 --- a/src/components/qualityOptions.js +++ b/src/components/qualityOptions.js @@ -30,18 +30,19 @@ export function getVideoQualityOptions(options) { qualityOptions.push({ name: '4K - 120 Mbps', maxHeight: 2160, bitrate: 120000000 }); qualityOptions.push({ name: '4K - 80 Mbps', maxHeight: 2160, bitrate: 80000000 }); } - if (maxAllowedWidth >= 1900) { // Some 1080- videos are reported as 1912? + // Some 1080- videos are reported as 1912? + if (maxAllowedWidth >= 1900) { qualityOptions.push({ name: '1080p - 60 Mbps', maxHeight: 1080, bitrate: 60000000 }); qualityOptions.push({ name: '1080p - 40 Mbps', maxHeight: 1080, bitrate: 40000000 }); qualityOptions.push({ name: '1080p - 20 Mbps', maxHeight: 1080, bitrate: 20000000 }); qualityOptions.push({ name: '1080p - 15 Mbps', maxHeight: 1080, bitrate: 15000000 }); qualityOptions.push({ name: '1080p - 10 Mbps', maxHeight: 1080, bitrate: 10000000 }); - } + } if (maxAllowedWidth >= 1260) { qualityOptions.push({ name: '720p - 8 Mbps', maxHeight: 720, bitrate: 8000000 }); qualityOptions.push({ name: '720p - 6 Mbps', maxHeight: 720, bitrate: 6000000 }); qualityOptions.push({ name: '720p - 3 Mbps', maxHeight: 720, bitrate: 3000000 }); - } + } if (maxAllowedWidth >= 620) { qualityOptions.push({ name: '480p - 1.5 Mbps', maxHeight: 480, bitrate: 1500000 }); qualityOptions.push({ name: '480p - 720 kbps', maxHeight: 480, bitrate: 720000 });