]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[YoutubeDL] Fix format resolution when height is missing
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Feb 2016 16:46:13 +0000 (22:46 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Feb 2016 16:46:13 +0000 (22:46 +0600)
youtube_dl/YoutubeDL.py

index 3cabfbc03257691f5c27a0cc05cd8376086ba7b9..e5b75f0f5c73d8e99ea17ae61fc9a0b8102d63a5 100755 (executable)
@@ -1798,7 +1798,7 @@ class YoutubeDL(object):
             else:
                 res = '%sp' % format['height']
         elif format.get('width') is not None:
-            res = '?x%d' % format['width']
+            res = '%dx?' % format['width']
         else:
             res = default
         return res