mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-07 15:25:12 +01:00
[ie/youtube] Use impersonation for downloading subtitles (#13786)
Closes #13770 Authored by: bashonly
This commit is contained in:
parent
a4561c7a66
commit
8820101aa3
1 changed files with 1 additions and 0 deletions
|
|
@ -4056,6 +4056,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
'ext': fmt,
|
'ext': fmt,
|
||||||
'url': urljoin('https://www.youtube.com', update_url_query(base_url, query)),
|
'url': urljoin('https://www.youtube.com', update_url_query(base_url, query)),
|
||||||
'name': sub_name,
|
'name': sub_name,
|
||||||
|
'impersonate': True,
|
||||||
STREAMING_DATA_CLIENT_NAME: client_name,
|
STREAMING_DATA_CLIENT_NAME: client_name,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue