mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-19 09:37:34 +01:00
[phantomjs] Fix bug in 8b7539d27c0a47d8d08e0522bdb66c571483377b
Closes #3066
This commit is contained in:
parent
b3edc8068e
commit
aeb21b98f1
@ -207,7 +207,7 @@ class PhantomJSwrapper(object):
|
||||
|
||||
replaces = self.options
|
||||
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['jscode'] = jscode
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user