mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-06 14:51:28 +03:00
Custom quality configurations now use the old downloading method to avoid errors
postsservice now does jwt auth after checking if multi user mode is enabled Minor update to user profile UI Added setting for enabling and disabling multi user mode
This commit is contained in:
@@ -1411,9 +1411,9 @@ async function generateArgs(url, type, options) {
|
||||
downloadConfig = customArgs.split(' ');
|
||||
} else {
|
||||
if (customQualityConfiguration) {
|
||||
qualityPath = customQualityConfiguration;
|
||||
qualityPath = `-f ${customQualityConfiguration}`;
|
||||
} else if (selectedHeight && selectedHeight !== '' && !is_audio) {
|
||||
qualityPath = `-f bestvideo[height=${selectedHeight}]+bestaudio/best[height=${selectedHeight}]`;
|
||||
qualityPath = `-f '(mp4)[height=${selectedHeight}]'`;
|
||||
} else if (maxBitrate && is_audio) {
|
||||
qualityPath = `--audio-quality ${maxBitrate}`
|
||||
}
|
||||
@@ -1783,7 +1783,7 @@ app.post('/api/tomp4', optionalJwt, async function(req, res) {
|
||||
|
||||
const is_playlist = url.includes('playlist');
|
||||
let result_obj = null;
|
||||
if (is_playlist)
|
||||
if (is_playlist || options.customQualityConfiguration)
|
||||
result_obj = await downloadFileByURL_exec(url, 'video', options, req.query.sessionID);
|
||||
else
|
||||
result_obj = await downloadFileByURL_normal(url, 'video', options, req.query.sessionID);
|
||||
|
||||
Reference in New Issue
Block a user