summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-11 22:46:13 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-11 22:46:13 +0600
commit388ae76b52ff85dba5c47f5958fbe3e662abd346 (patch)
treec67c23ce1f59948f547366b0b4a6b385b7974df9
parentb67d63149d79f98a84bec0ecf8028282d523d1f2 (diff)
downloadyoutube-dl-388ae76b52ff85dba5c47f5958fbe3e662abd346.tar.gz
youtube-dl-388ae76b52ff85dba5c47f5958fbe3e662abd346.tar.xz
youtube-dl-388ae76b52ff85dba5c47f5958fbe3e662abd346.zip
[YoutubeDL] Fix format resolution when height is missing
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 3cabfbc03..e5b75f0f5 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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