1
0
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:
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:
return []
for size, thumb in thumbs:
if size == 'copyright':
if size == 'copyright' or not isinstance(thumb, dict):
continue
thumbnails.append({**thumb,
'preference': preference,