mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-04 04:18:31 +00:00
thumbnail: filter out non-dicts
This commit is contained in:
parent
b0de307079
commit
26683fe74d
@ -769,7 +769,7 @@ def _get_thumbnails(self, thumbs, name, preference=-1):
|
||||
if thumbs is None or len(thumbs) == 0:
|
||||
return []
|
||||
for size, thumb in thumbs:
|
||||
if size == 'copyright':
|
||||
if size == 'copyright' or not isinstance(thumb, dict):
|
||||
continue
|
||||
thumbnails.append({**thumb,
|
||||
'preference': preference,
|
||||
|
Loading…
Reference in New Issue
Block a user