From aeb21b98f1a43b9a2e89d7ea99183d6267f0899d Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 14 Mar 2022 16:10:37 +0530 Subject: [PATCH] [phantomjs] Fix bug in 8b7539d27c0a47d8d08e0522bdb66c571483377b Closes #3066 --- yt_dlp/extractor/openload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/openload.py b/yt_dlp/extractor/openload.py index 36927009d..fe4740aae 100644 --- a/yt_dlp/extractor/openload.py +++ b/yt_dlp/extractor/openload.py @@ -207,7 +207,7 @@ def get(self, url, html=None, video_id=None, note=None, note2='Executing JS on w 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