[YoutubeDL] Fix format resolution when height is missing
[youtube-dl] / 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