saving
This commit is contained in:
parent
5a318e7d8c
commit
58346647e5
4
ytdlp.ts
4
ytdlp.ts
|
|
@ -128,7 +128,7 @@ function runCommand(cmd: string, args: string[]): Promise<string> {
|
|||
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<void> {
|
|||
console.log(`[ytdlp] Running: ${fullCmd}`);
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
const proc = spawn(ytdlpCommand, args, { shell: true });
|
||||
const proc = spawn(ytdlpCommand, args);
|
||||
|
||||
proc.stdout.on("data", (data) => {
|
||||
const line = data.toString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue