Browse Source

[YoutubeDL] Fix format resolution when height is missing

Sergey M․ 9 years ago
parent
commit
388ae76b52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

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