hopefully this fixes it

This commit is contained in:
localhost 2024-03-29 15:39:52 +01:00
parent 42ae296490
commit 50a5581f81
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ async function downloadVideo(url, ws, id) {
async function getFormats(url, ws) { async function getFormats(url, ws) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const child = child_process.spawn("../yt-dlp", [url, "-F"], {cwd: 'videos', shell: false}) const child = child_process.spawn('../yt-dlp', ['--proxy', 'socks5://gluetun:1080', url, '-F'], {cwd: 'videos', shell: false})
let outputs = '' let outputs = ''
child.stdout.on("data", data => { child.stdout.on("data", data => {