aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--youtube_dl/YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index e159aa336..a32e50772 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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)