1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 10:11:52 +00:00

Fix the default values of format_id and format

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-07-14 17:31:52 +02:00
parent e028d0d1e3
commit 8016c92297

View file

@ -472,10 +472,10 @@ class YoutubeDL(object):
else:
format_desc = u'%sp' % format['height']
else:
format_desc = compat_str(i)
format_desc = '???'
format['format'] = format_desc
if format.get('format_id') is None:
format['format_id'] = '???'
format['format_id'] = compat_str(i)
if self.params.get('listformats', None):
self.list_formats(info_dict)