This commit is contained in:
parent
773ed66702
commit
d34388b3ba
2 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@ class Config(BaseSettings):
|
|||
ymusic: OauthCreds
|
||||
|
||||
proxy: str | None
|
||||
socks_proxy: str | None
|
||||
jwt_secret: str
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ def _download(yt_id: str, directory: str):
|
|||
'outtmpl': os.path.join(directory, 'dl.%(ext)s'),
|
||||
}
|
||||
if config.proxy:
|
||||
params['proxy'] = config.proxy
|
||||
params['proxy'] = config.socks_proxy
|
||||
with YoutubeDL(params) as ydl:
|
||||
return ydl.extract_info(yt_id)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue