diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 9c40d56a9d..5684227dcf 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1054,10 +1054,18 @@ def _parse_smil(self, smil, smil_url, video_id, f4m_params=None): elif not description and name in ('description', 'abstract'): description = content + thumbnails = [{ + 'id': image.get('type'), + 'url': image.get('src'), + 'width': int_or_none(image.get('width')), + 'height': int_or_none(image.get('height')), + } for image in smil.findall(self._xpath_ns('.//image', namespace)) if image.get('src')] + return { 'id': video_id, 'title': title or video_id, 'description': description, + 'thumbnails': thumbnails, 'formats': formats, 'subtitles': subtitles, }