mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[YoutubeDL] Handle None width and height similarly to formats
This commit is contained in:
parent
c7c040b825
commit
9603e8a7d9
1 changed files with 1 additions and 1 deletions
|
@ -1008,7 +1008,7 @@ def process_video_result(self, info_dict, download=True):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue