A feature-rich command-line audio/video downloader
[YoutubeDL] Handle None width and height similarly to formats
Sergey M․9603e8a7d998
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex ef0f71bad4..411de9ac93 100755--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -1008,7 +1008,7 @@ class YoutubeDL(object):t.get('preference'), t.get('width'), t.get('height'),t.get('id'), t.get('url')))for i, t in enumerate(thumbnails):- if 'width' in t and 'height' in t:+ if t.get('width') and t.get('height'):t['resolution'] = '%dx%d' % (t['width'], t['height'])if t.get('id') is None:t['id'] = '%d' % i