mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
124bc071ee
commit
7bb6434767
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
ExtractorError,
|
||||
float_or_none,
|
||||
int_or_none,
|
||||
traverse_obj,
|
||||
)
|
||||
|
||||
|
||||
|
@ -217,7 +218,7 @@ def _real_extract(self, url):
|
|||
})
|
||||
|
||||
thumbnails = []
|
||||
for thumbnail in video_data.get('images', {}).get('thumbnails', []):
|
||||
for thumbnail in traverse_obj(video_data, ('images', 'thumbnail', ..., ...)):
|
||||
thumbnail_url = thumbnail.get('source')
|
||||
if not thumbnail_url:
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue