Fixed #600, where selecting a max resolution for subscriptions was broken

This commit is contained in:
Isaac Abadi
2022-06-23 01:44:55 -04:00
parent b1448d95e5
commit 64b4b5a2b4

View File

@@ -421,7 +421,7 @@ exports.generateArgs = async (url, type, options, user_uid = null, simulated = f
if (customQualityConfiguration) {
qualityPath = ['-f', customQualityConfiguration, '--merge-output-format', 'mp4'];
} else if (selectedHeight && selectedHeight !== '' && !is_audio) {
qualityPath = ['-f', `'(mp4)[height=${selectedHeight}'`];
qualityPath = ['-f', `'(mp4)[height=${selectedHeight}]`];
} else if (is_audio) {
qualityPath = ['--audio-quality', maxBitrate ? maxBitrate : '0']
}