From 7bb6434767ee080f216a6b3f0929b4c59dc77460 Mon Sep 17 00:00:00 2001 From: funniray Date: Thu, 5 Aug 2021 17:19:28 +0100 Subject: [PATCH] [vrv] Fix thumbnail extraction (#634) Authored by: funniray --- yt_dlp/extractor/vrv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/vrv.py b/yt_dlp/extractor/vrv.py index 6e51469b0..44f90acbd 100644 --- a/yt_dlp/extractor/vrv.py +++ b/yt_dlp/extractor/vrv.py @@ -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