From 50a5581f81dd77535a5a265a23e89631a2d11db9 Mon Sep 17 00:00:00 2001 From: localhost Date: Fri, 29 Mar 2024 15:39:52 +0100 Subject: [PATCH] hopefully this fixes it --- utils/ytdlp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 6c3048e..7d78b8b 100644 --- a/utils/ytdlp.js +++ b/utils/ytdlp.js @@ -46,7 +46,7 @@ async function downloadVideo(url, ws, id) { async function getFormats(url, ws) { 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 = '' child.stdout.on("data", data => {