mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 01:02:48 +01:00
Fix the default values of format_id and format
This commit is contained in:
parent
e028d0d1e3
commit
8016c92297
@ -472,10 +472,10 @@ def process_video_result(self, info_dict, download=True):
|
|||||||
else:
|
else:
|
||||||
format_desc = u'%sp' % format['height']
|
format_desc = u'%sp' % format['height']
|
||||||
else:
|
else:
|
||||||
format_desc = compat_str(i)
|
format_desc = '???'
|
||||||
format['format'] = format_desc
|
format['format'] = format_desc
|
||||||
if format.get('format_id') is None:
|
if format.get('format_id') is None:
|
||||||
format['format_id'] = '???'
|
format['format_id'] = compat_str(i)
|
||||||
|
|
||||||
if self.params.get('listformats', None):
|
if self.params.get('listformats', None):
|
||||||
self.list_formats(info_dict)
|
self.list_formats(info_dict)
|
||||||
|
Loading…
Reference in New Issue
Block a user