aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
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 /youtube_dl/YoutubeDL.py
parentb67d63149d79f98a84bec0ecf8028282d523d1f2 (diff)
[YoutubeDL] Fix format resolution when height is missing
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-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