patch qualityPath

qualityPath should not be escaped, this results in `could not find format error`
pull/343/head
controlol 6 years ago committed by GitHub
parent b9f6d29061
commit 7e9d1d30da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -381,8 +381,8 @@ async function generateArgsForSubscription(sub, user_uid, redownload = false, de
qualityPath.push('-x');
qualityPath.push('--audio-format', 'mp3');
} else {
if (!sub.maxQuality || sub.maxQuality === 'best') qualityPath = ['-f', '\'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4\''];
else qualityPath = ['-f', `'bestvideo[height<=${sub.maxQuality}]+bestaudio/best[height<=${sub.maxQuality}]'`, '--merge-output-format', 'mp4'];
if (!sub.maxQuality || sub.maxQuality === 'best') qualityPath = ['-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4'];
else qualityPath = ['-f', `bestvideo[height<=${sub.maxQuality}]+bestaudio/best[height<=${sub.maxQuality}]`, '--merge-output-format', 'mp4'];
}
downloadConfig.push(...qualityPath)

Loading…
Cancel
Save