mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
parent
7e9a612585
commit
e121e3cee7
4 changed files with 9 additions and 7 deletions
|
@ -909,7 +909,7 @@ class InfoExtractor:
|
|||
dump = base64.b64encode(webpage_bytes).decode('ascii')
|
||||
self._downloader.to_screen(dump)
|
||||
if self.get_param('write_pages'):
|
||||
filename = self._request_dump_filename(video_id, urlh.geturl())
|
||||
filename = self._request_dump_filename(urlh.geturl(), video_id)
|
||||
self.to_screen(f'Saving request to {filename}')
|
||||
with open(filename, 'wb') as outf:
|
||||
outf.write(webpage_bytes)
|
||||
|
@ -940,7 +940,7 @@ class InfoExtractor:
|
|||
if fatal:
|
||||
raise ExtractorError(errmsg, cause=ve)
|
||||
else:
|
||||
self.report_warning(errmsg + str(ve))
|
||||
self.report_warning(f'{errmsg}: {ve}')
|
||||
|
||||
def _parse_socket_response_as_json(self, data, video_id, transform_source=None, fatal=True):
|
||||
return self._parse_json(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue