Skip to content

Commit 0f89203

Browse files
Add yt-dlp proxy env (#221)
1 parent d9bb567 commit 0f89203

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

routes/v1/media/download.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def download_media(job_id, data):
105105
'no_warnings': True,
106106
'download': data.get('cloud_upload', True)
107107
}
108+
109+
ydl_opts['proxy'] = os.environ.get('MEDIA_DOWNLOAD_PROXY')
108110

109111
# Add cookies if provided
110112
if cookie:

0 commit comments

Comments
 (0)