From: Sergey M․ Date: Thu, 11 Feb 2016 16:46:13 +0000 (+0600) Subject: [YoutubeDL] Fix format resolution when height is missing X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=388ae76b52ff85dba5c47f5958fbe3e662abd346;p=youtube-dl [YoutubeDL] Fix format resolution when height is missing --- 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