YTDLP_PATH everywhere
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 19s
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 19s
This commit is contained in:
parent
da95e2024f
commit
fa24bc435d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export function streamYouTube(link: string, format: string): ReadableStream<Uint
|
|||
|
||||
console.info(`${YTDLP_PATH} ${args.join(' ')} ${link}`)
|
||||
|
||||
const process = spawn('yt-dlp', [...args, link], { stdio: ['ignore', 'pipe', 'ignore'] });
|
||||
const process = spawn(YTDLP_PATH, [...args, link], { stdio: ['ignore', 'pipe', 'ignore'] });
|
||||
|
||||
process.stdout.on('data', (chunk) => controller.enqueue(chunk));
|
||||
process.stdout.on('end', () => controller.close());
|
||||
|
|
Loading…
Add table
Reference in a new issue