use path also on spawn
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 15s
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 15s
This commit is contained in:
parent
109a668413
commit
b5cbef9de7
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ export function streamYouTube(link: string, format: string): ReadableStream<Uint
|
||||||
args.push(...['--embed-metadata', '--embed-thumbnail', '--format', format])
|
args.push(...['--embed-metadata', '--embed-thumbnail', '--format', format])
|
||||||
}
|
}
|
||||||
|
|
||||||
console.info(`yt-dlp ${args.join(' ')} ${link}`)
|
console.info(`${YTDLP_PATH} ${args.join(' ')} ${link}`)
|
||||||
|
|
||||||
const process = spawn('yt-dlp', [...args, link], { stdio: ['ignore', 'pipe', 'ignore'] });
|
const process = spawn('yt-dlp', [...args, link], { stdio: ['ignore', 'pipe', 'ignore'] });
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue