mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-16 01:41:29 +03:00
Fixed #600, where selecting a max resolution for subscriptions was broken
This commit is contained in:
@@ -421,7 +421,7 @@ exports.generateArgs = async (url, type, options, user_uid = null, simulated = f
|
|||||||
if (customQualityConfiguration) {
|
if (customQualityConfiguration) {
|
||||||
qualityPath = ['-f', customQualityConfiguration, '--merge-output-format', 'mp4'];
|
qualityPath = ['-f', customQualityConfiguration, '--merge-output-format', 'mp4'];
|
||||||
} else if (selectedHeight && selectedHeight !== '' && !is_audio) {
|
} else if (selectedHeight && selectedHeight !== '' && !is_audio) {
|
||||||
qualityPath = ['-f', `'(mp4)[height=${selectedHeight}'`];
|
qualityPath = ['-f', `'(mp4)[height=${selectedHeight}]`];
|
||||||
} else if (is_audio) {
|
} else if (is_audio) {
|
||||||
qualityPath = ['--audio-quality', maxBitrate ? maxBitrate : '0']
|
qualityPath = ['--audio-quality', maxBitrate ? maxBitrate : '0']
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user