logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 7193498811cb17a66ca57569a8588adb28ba2b27
parent 72321ead7b176824d1a8b2895ad4926555e41b88
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Wed, 30 Oct 2013 01:17:00 +0100

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

Diffstat:

Myoutube_dl/YoutubeDL.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py @@ -482,7 +482,7 @@ class YoutubeDL(object): format['format'] = u'{id} - {res}{note}'.format( id=format['format_id'], 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 if 'ext' not in format: