mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-03 11:58:32 +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:
|
if thumbs is None or len(thumbs) == 0:
|
||||||
return []
|
return []
|
||||||
for size, thumb in thumbs:
|
for size, thumb in thumbs:
|
||||||
if size == 'copyright':
|
if size == 'copyright' or not isinstance(thumb, dict):
|
||||||
continue
|
continue
|
||||||
thumbnails.append({**thumb,
|
thumbnails.append({**thumb,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
|
Loading…
Reference in New Issue
Block a user