mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-06 02:51:28 +03:00
fixed bug that prevented custom args from working
This commit is contained in:
@@ -523,7 +523,7 @@ app.post('/tomp3', function(req, res) {
|
|||||||
let qualityPath = '';
|
let qualityPath = '';
|
||||||
|
|
||||||
if (customArgs) {
|
if (customArgs) {
|
||||||
downloadConfig = [customArgs];
|
downloadConfig = customArgs.split(' ');
|
||||||
} else {
|
} else {
|
||||||
if (customOutput) {
|
if (customOutput) {
|
||||||
downloadConfig = ['-o', audioFolderPath + customOutput + '.mp3', '-x', '--audio-format', 'mp3', '--write-info-json', '--print-json'];
|
downloadConfig = ['-o', audioFolderPath + customOutput + '.mp3', '-x', '--audio-format', 'mp3', '--write-info-json', '--print-json'];
|
||||||
@@ -611,7 +611,7 @@ app.post('/tomp4', function(req, res) {
|
|||||||
let qualityPath = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4';
|
let qualityPath = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4';
|
||||||
|
|
||||||
if (customArgs) {
|
if (customArgs) {
|
||||||
downloadConfig = [customArgs];
|
downloadConfig = customArgs.split(' ');
|
||||||
} else {
|
} else {
|
||||||
if (customOutput) {
|
if (customOutput) {
|
||||||
downloadConfig = ['-o', path + customOutput + ".mp4", '-f', qualityPath, '--write-info-json', '--print-json'];
|
downloadConfig = ['-o', path + customOutput + ".mp4", '-f', qualityPath, '--write-info-json', '--print-json'];
|
||||||
|
|||||||
Reference in New Issue
Block a user