From 2ea834e632dfcd741b77d097028985cf7189e12e Mon Sep 17 00:00:00 2001 From: ashutosh chaudhary <216.ashutosh@gmail.com> Date: Mon, 23 Jan 2017 05:16:42 +0530 Subject: [PATCH] Updated code to get only first available thumbnail --- youtube_dl/extractor/voot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/voot.py b/youtube_dl/extractor/voot.py index 4d86bbfba..db5bda660 100644 --- a/youtube_dl/extractor/voot.py +++ b/youtube_dl/extractor/voot.py @@ -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, - } \ No newline at end of file + }