From 15a1f4b8fe60fea11e757ea30a6e3bbc620aa688 Mon Sep 17 00:00:00 2001 From: =?utf8?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 1290cd9f7..3c2289e57 100644 --- a/youtube_dl/extractor/empflix.py +++ b/youtube_dl/extractor/empflix.py @@ -47,10 +47,14 @@ class EmpflixIE(InfoExtractor): 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, } -- 2.22.2