diff --git a/ytdlp.ts b/ytdlp.ts index ec52c36..880edc3 100644 --- a/ytdlp.ts +++ b/ytdlp.ts @@ -128,7 +128,7 @@ function runCommand(cmd: string, args: string[]): Promise { const fullCmd = `${cmd} ${args.join(" ")}`; console.log(`[ytdlp] Running: ${fullCmd}`); return new Promise((resolve, reject) => { - const proc = spawn(cmd, args, { shell: true }); + const proc = spawn(cmd, args); let stdout = ""; let stderr = ""; proc.stdout.on("data", (data) => { stdout += data; }); @@ -336,7 +336,7 @@ async function downloadItem(item: QueueItem): Promise { console.log(`[ytdlp] Running: ${fullCmd}`); await new Promise((resolve, reject) => { - const proc = spawn(ytdlpCommand, args, { shell: true }); + const proc = spawn(ytdlpCommand, args); proc.stdout.on("data", (data) => { const line = data.toString();