mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 05:57:15 +08:00
Updated code to get only first available thumbnail
This commit is contained in:
parent
20e971246c
commit
2ea834e632
@ -41,7 +41,9 @@ class VootIE(InfoExtractor):
|
|||||||
|
|
||||||
if video_data['Pictures']:
|
if video_data['Pictures']:
|
||||||
for picture in video_data['Pictures']:
|
for picture in video_data['Pictures']:
|
||||||
|
#Get only first available thumbnail
|
||||||
thumbnail = picture.get('URL')
|
thumbnail = picture.get('URL')
|
||||||
|
break
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
@ -50,4 +52,4 @@ class VootIE(InfoExtractor):
|
|||||||
'title': video_data.get('MediaName'),
|
'title': video_data.get('MediaName'),
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
'formats':formats,
|
'formats':formats,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user