From 8d71b9d0c277d62bbf9074dddca6c2115d480a5d Mon Sep 17 00:00:00 2001 From: Mootfrost Date: Sun, 13 Apr 2025 21:11:33 +0300 Subject: [PATCH] Try workaround --- app/youtube_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/youtube_api.py b/app/youtube_api.py index 9397805..c27dd1d 100644 --- a/app/youtube_api.py +++ b/app/youtube_api.py @@ -26,7 +26,7 @@ def _download(yt_id: str, directory: str): 'quiet': True, 'outtmpl': os.path.join(directory, 'dl.%(ext)s'), } - if config.proxy: + if config.socks_proxy: params['proxy'] = config.socks_proxy with YoutubeDL(params) as ydl: return ydl.extract_info(yt_id)