aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-08-26 20:10:36 +0700
committerSergey M․ <dstftw@gmail.com>2014-08-26 20:10:36 +0700
commit15a1f4b8fe60fea11e757ea30a6e3bbc620aa688 (patch)
treede1b09ba157b54c3c704dbf734cbf35e2ec2a906 /youtube_dl/extractor
parentc7bee2a7254d31b7c478c0ac33bf23bdeba1c53c (diff)
[empflix] Extract thumbnail
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/empflix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/empflix.py b/youtube_dl/extractor/empflix.py
index 1290cd9f7..3c2289e57 100644
--- a/youtube_dl/extractor/empflix.py
+++ b/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,
}