1
0
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:
garret1317 2025-03-23 15:23:04 +00:00
parent b0de307079
commit 26683fe74d

View File

@ -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,