浏览代码

[empflix] Extract thumbnail

Sergey M․ 11 年之前
父节点
当前提交
15a1f4b8fe
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      youtube_dl/extractor/empflix.py

+ 4 - 0
youtube_dl/extractor/empflix.py

@@ -47,10 +47,14 @@ class EmpflixIE(InfoExtractor):
                 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,
         }