1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 05:07:45 +08:00

Updated code to get only first available thumbnail

This commit is contained in:
ashutosh chaudhary 2017-01-23 05:16:42 +05:30 committed by GitHub
parent 20e971246c
commit 2ea834e632

View File

@ -41,7 +41,9 @@ class VootIE(InfoExtractor):
if video_data['Pictures']:
for picture in video_data['Pictures']:
#Get only first available thumbnail
thumbnail = picture.get('URL')
break
self._sort_formats(formats)
@ -50,4 +52,4 @@ class VootIE(InfoExtractor):
'title': video_data.get('MediaName'),
'thumbnail': thumbnail,
'formats':formats,
}
}