[YoutubeDL] Fix resolution with missing height in output template dict
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Mar 2016 13:38:58 +0000 (19:38 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Mar 2016 13:38:58 +0000 (19:38 +0600)
youtube_dl/YoutubeDL.py

index dcc867e456db6b0131ed797ae6bfd78f327834dc..f91851df91ee2a7bf49910ac2d8ec12f2bf94469 100755 (executable)
@@ -567,7 +567,7 @@ class YoutubeDL(object):
                 elif template_dict.get('height'):
                     template_dict['resolution'] = '%sp' % template_dict['height']
                 elif template_dict.get('width'):
-                    template_dict['resolution'] = '?x%d' % template_dict['width']
+                    template_dict['resolution'] = '%dx?' % template_dict['width']
 
             sanitize = lambda k, v: sanitize_filename(
                 compat_str(v),