浏览代码

Use index in formt string (Fixes vevo test on Python 2.6)

Philipp Hagemeister 12 年之前
父节点
当前提交
7193498811
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -482,7 +482,7 @@ class YoutubeDL(object):
                 format['format'] = u'{id} - {res}{note}'.format(
                 format['format'] = u'{id} - {res}{note}'.format(
                     id=format['format_id'],
                     id=format['format_id'],
                     res=self.format_resolution(format),
                     res=self.format_resolution(format),
-                    note=u' ({})'.format(format['format_note']) if format.get('format_note') is not None else '',
+                    note=u' ({0})'.format(format['format_note']) if format.get('format_note') is not None else '',
                 )
                 )
             # Automatically determine file extension if missing
             # Automatically determine file extension if missing
             if 'ext' not in format:
             if 'ext' not in format: