[youtube] Always extract maxresdefault thumbnail

Fixes: https://github.com/ytdl-org/youtube-dl/issues/29049
This commit is contained in:
pukkandan
2021-05-18 19:15:11 +05:30
parent abcdd12b26
commit ff2751ac9c
2 changed files with 17 additions and 8 deletions

View File

@@ -1944,7 +1944,8 @@ class YoutubeDL(object):
t.get('preference') if t.get('preference') is not None else -1,
t.get('width') if t.get('width') is not None else -1,
t.get('height') if t.get('height') is not None else -1,
t.get('id') if t.get('id') is not None else '', t.get('url')))
t.get('id') if t.get('id') is not None else '',
t.get('url')))
for i, t in enumerate(thumbnails):
t['url'] = sanitize_url(t['url'])
if t.get('width') and t.get('height'):