diff options
author | funniray <funniray10@gmail.com> | 2021-08-05 17:19:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 21:49:28 +0530 |
commit | 7bb6434767ee080f216a6b3f0929b4c59dc77460 (patch) | |
tree | d58807ac736a498da9e4b0c38fe7fb66e558c268 /yt_dlp/extractor/vrv.py | |
parent | 124bc071ee8fda22be50f84117f932e875acb6a5 (diff) | |
download | hypervideo-pre-7bb6434767ee080f216a6b3f0929b4c59dc77460.tar.lz hypervideo-pre-7bb6434767ee080f216a6b3f0929b4c59dc77460.tar.xz hypervideo-pre-7bb6434767ee080f216a6b3f0929b4c59dc77460.zip |
[vrv] Fix thumbnail extraction (#634)
Authored by: funniray
Diffstat (limited to 'yt_dlp/extractor/vrv.py')
-rw-r--r-- | yt_dlp/extractor/vrv.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ from ..utils import ( ExtractorError, float_or_none, int_or_none, + traverse_obj, ) @@ -217,7 +218,7 @@ class VRVIE(VRVBaseIE): }) 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 |