]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Correct automatic resolution determination
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 10 Mar 2014 09:29:25 +0000 (10:29 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 10 Mar 2014 09:29:25 +0000 (10:29 +0100)
youtube_dl/YoutubeDL.py

index fcb8dd19c3facb17717aef308e08bc399dd0496c..523eba3c1e1287c6813de63825613ab39d63d8a7 100644 (file)
@@ -416,9 +416,9 @@ class YoutubeDL(object):
                 if template_dict.get('width') and template_dict.get('height'):
                     template_dict['resolution'] = '%dx%d' % (template_dict['width'], template_dict['height'])
                 elif template_dict.get('height'):
-                    res = '%sp' % template_dict['height']
+                    template_dict['resolution'] = '%sp' % template_dict['height']
                 elif template_dict.get('width'):
-                    res = '?x%d' % template_dict['width']
+                    template_dict['resolution'] = '?x%d' % template_dict['width']
 
             sanitize = lambda k, v: sanitize_filename(
                 compat_str(v),