1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-09-15 23:32:25 +02:00

[YoutubeDL] Fix format resolution when height is missing

This commit is contained in:
Sergey M․ 2016-02-11 22:46:13 +06:00
parent b67d63149d
commit 388ae76b52

View File

@ -1798,7 +1798,7 @@ def format_resolution(format, default='unknown'):
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