1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-07-08 21:04:38 +02:00

[vrv] Don't raise error when thumbnails are missing

Closes #983
This commit is contained in:
pukkandan 2021-09-16 00:31:22 +05:30
parent dbf7eca917
commit f7590d4764
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -218,7 +218,7 @@ def _real_extract(self, url):
})
thumbnails = []
for thumbnail in traverse_obj(video_data, ('images', 'thumbnail', ..., ...)):
for thumbnail in traverse_obj(video_data, ('images', 'thumbnail', ..., ...)) or []:
thumbnail_url = thumbnail.get('source')
if not thumbnail_url:
continue