Browse Source

[empflix] Extract thumbnail

totalwebcasting
Sergey M․ 10 years ago
parent
commit
15a1f4b8fe
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      youtube_dl/extractor/empflix.py

+ 4
- 0
youtube_dl/extractor/empflix.py View File

@ -47,10 +47,14 @@ class EmpflixIE(InfoExtractor):
r'<item>\s*<res>([^>]+)</res>\s*<videoLink>([^<]+)</videoLink>\s*</item>', cfg_xml) 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 { return {
'id': video_id, 'id': video_id,
'title': video_title, 'title': video_title,
'description': video_description, 'description': video_description,
'thumbnail': thumbnail,
'formats': formats, 'formats': formats,
'age_limit': age_limit, 'age_limit': age_limit,
} }

Loading…
Cancel
Save