From 705921b8d077502289fa792ff8d39c8bfbb4b002 Mon Sep 17 00:00:00 2001
From: Supositware <sup@libtar.de>
Date: Wed, 28 Aug 2024 14:42:22 +0200
Subject: [PATCH] forgot proxy here

---
 utils/videos.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/videos.js b/utils/videos.js
index f964e89b..87a5fcda 100644
--- a/utils/videos.js
+++ b/utils/videos.js
@@ -99,7 +99,7 @@ async function getVideoCodec(input) {
 
 async function getVideoSize(urlArg, format = `bestvideo[height<=?${ytdlpMaxResolution}]+bestaudio/best`) {
 	return await new Promise((resolve, reject) => {
-		execFile('./bin/yt-dlp', [urlArg, '-f', format, '--no-warnings', '-O', '%(filesize,filesize_approx)s'], (err, stdout, stderr) => {
+		execFile('./bin/yt-dlp', [proxy ? '--proxy' : '', proxy ? proxy : '', urlArg, '-f', format, '--no-warnings', '-O', '%(filesize,filesize_approx)s'], (err, stdout, stderr) => {
 			if (err) {
 				reject(stderr);
 			}