aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-14 17:31:52 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-10-11 16:34:49 +0200
commit8016c9229718080f5211b9f9da176992622b30e6 (patch)
tree136dc8ab191c370751a3758da48acb16eb49b93e
parente028d0d1e3ffed0a323b41431dbbfc804aa9553e (diff)
Fix the default values of format_id and format
-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)