[empflix] Extract thumbnail

This commit is contained in:
Sergey M․ 2014-08-26 20:10:36 +07:00
parent c7bee2a725
commit 15a1f4b8fe

View file

@ -47,10 +47,14 @@ def _real_extract(self, url):
r'<item>\s*<res>([^>]+)</res>\s*<videoLink>([^<]+)</videoLink>\s*</item>', cfg_xml)
]
thumbnail = self._html_search_regex(
r'<startThumb>([^<]+)</startThumb>', cfg_xml, 'thumbnail', fatal=False)
return {
'id': video_id,
'title': video_title,
'description': video_description,
'thumbnail': thumbnail,
'formats': formats,
'age_limit': age_limit,
}