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:
parent
2e27421c70
commit
4846122f7d
@ -181,15 +181,17 @@ class VRVIE(VRVBaseIE):
|
|||||||
})
|
})
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
for thumbnail in video_data.get('images', {}).get('thumbnails', []):
|
thumbnails_list = video_data.get('images', {}).get('thumbnail', [])
|
||||||
thumbnail_url = thumbnail.get('source')
|
if thumbnails_list:
|
||||||
if not thumbnail_url:
|
for thumbnail in thumbnails_list[0]:
|
||||||
continue
|
thumbnail_url = thumbnail.get('source')
|
||||||
thumbnails.append({
|
if not thumbnail_url:
|
||||||
'url': thumbnail_url,
|
continue
|
||||||
'width': int_or_none(thumbnail.get('width')),
|
thumbnails.append({
|
||||||
'height': int_or_none(thumbnail.get('height')),
|
'url': thumbnail_url,
|
||||||
})
|
'width': int_or_none(thumbnail.get('width')),
|
||||||
|
'height': int_or_none(thumbnail.get('height')),
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user