diff options
author | ruuk <ruuk@users.noreply.github.com> | 2014-02-25 12:04:44 -0800 |
---|---|---|
committer | ruuk <ruuk@users.noreply.github.com> | 2014-02-25 12:04:44 -0800 |
commit | 76df418cbac1ed02c8919924d92bd1bc7ddc70d9 (patch) | |
tree | bd3c01d8d178686394dec9cd79dcabd6efe55dc1 /youtube_dl/extractor | |
parent | d0a72674c6eab914be41b637ac11627485111313 (diff) |
Add thumbnail for metacafe
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/metacafe.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py index 99d3c83a5..364ba993b 100644 --- a/youtube_dl/extractor/metacafe.py +++ b/youtube_dl/extractor/metacafe.py @@ -166,6 +166,7 @@ class MetacafeIE(InfoExtractor): video_title = self._html_search_regex(r'(?im)<title>(.*) - Video</title>', webpage, u'title') description = self._og_search_description(webpage) + thumbnail = self._html_search_regex(r'<meta property="og:image" content="([^"].+?)(?is)"', webpage, u'thumbnail',default='') video_uploader = self._html_search_regex( r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("(?:channel|submiter)","([^"]+)"\);', webpage, u'uploader nickname', fatal=False) @@ -183,6 +184,7 @@ class MetacafeIE(InfoExtractor): 'uploader': video_uploader, 'upload_date': None, 'title': video_title, + 'thumbnail':thumbnail, 'ext': video_ext, 'age_limit': age_limit, } |