From 58346647e52d1874319188d6a3483c05a141c371 Mon Sep 17 00:00:00 2001 From: peterino2 Date: Wed, 4 Feb 2026 02:07:18 -0800 Subject: [PATCH] saving --- ytdlp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();