mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
b3edc8068e
commit
aeb21b98f1
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ def get(self, url, html=None, video_id=None, note=None, note2='Executing JS on w
|
||||||
|
|
||||||
replaces = self.options
|
replaces = self.options
|
||||||
replaces['url'] = url
|
replaces['url'] = url
|
||||||
user_agent = headers.get('User-Agent') or self.get_param('http_headers')['User-Agent']
|
user_agent = headers.get('User-Agent') or self.extractor.get_param('http_headers')['User-Agent']
|
||||||
replaces['ua'] = user_agent.replace('"', '\\"')
|
replaces['ua'] = user_agent.replace('"', '\\"')
|
||||||
replaces['jscode'] = jscode
|
replaces['jscode'] = jscode
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue