Skip to content

Commit

Permalink
[extractor] Fix --load-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Jul 22, 2023
1 parent 994f7ef commit 81b4712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/common.py
Expand Up @@ -1042,7 +1042,7 @@ def download_content(self, url_or_request, video_id, note=note, errnote=errnote,
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:
Expand Down

0 comments on commit 81b4712

Please sign in to comment.