[extractor] Fix `--load-pages`

pull/7629/head
pukkandan 1 year ago
parent 994f7ef8e6
commit 81b4712bca
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -1042,7 +1042,7 @@ class InfoExtractor:
fatal=True, encoding=None, data=None, headers={}, query={}, expected_status=None):
if self.get_param('load_pages'):
url_or_request = self._create_request(url_or_request, data, headers, query)
filename = self._request_dump_filename(url_or_request.full_url, video_id)
filename = self._request_dump_filename(url_or_request.url, video_id)
self.to_screen(f'Loading request from {filename}')
try:
with open(filename, 'rb') as dumpf:

Loading…
Cancel
Save