1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 18:34:32 +01:00

[vrv] fix thumbnails

This commit is contained in:
Evil-Crab 2019-03-17 00:07:23 +01:00
parent 2e27421c70
commit 4846122f7d

View File

@ -181,7 +181,9 @@ class VRVIE(VRVBaseIE):
}) })
thumbnails = [] thumbnails = []
for thumbnail in video_data.get('images', {}).get('thumbnails', []): thumbnails_list = video_data.get('images', {}).get('thumbnail', [])
if thumbnails_list:
for thumbnail in thumbnails_list[0]:
thumbnail_url = thumbnail.get('source') thumbnail_url = thumbnail.get('source')
if not thumbnail_url: if not thumbnail_url:
continue continue