From 15a1f4b8fe60fea11e757ea30a6e3bbc620aa688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Tue, 26 Aug 2014 20:10:36 +0700 Subject: [PATCH] [empflix] Extract thumbnail --- youtube_dl/extractor/empflix.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/empflix.py b/youtube_dl/extractor/empflix.py index 1290cd9f70..3c2289e571 100644 --- a/youtube_dl/extractor/empflix.py +++ b/youtube_dl/extractor/empflix.py @@ -47,10 +47,14 @@ def _real_extract(self, url): r'\s*([^>]+)\s*([^<]+)\s*', cfg_xml) ] + thumbnail = self._html_search_regex( + r'([^<]+)', cfg_xml, 'thumbnail', fatal=False) + return { 'id': video_id, 'title': video_title, 'description': video_description, + 'thumbnail': thumbnail, 'formats': formats, 'age_limit': age_limit, }