commit 388ae76b52ff85dba5c47f5958fbe3e662abd346
parent b67d63149d79f98a84bec0ecf8028282d523d1f2
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 11 Feb 2016 22:46:13 +0600
[YoutubeDL] Fix format resolution when height is missing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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