0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[vrv] Fix thumbnail extraction (#634)

Authored by: funniray
This commit is contained in:
funniray 2021-08-05 17:19:28 +01:00 committed by GitHub
parent 124bc071ee
commit 7bb6434767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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