aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruuk <ruuk@users.noreply.github.com>2014-02-25 12:04:44 -0800
committerruuk <ruuk@users.noreply.github.com>2014-02-25 12:04:44 -0800
commit76df418cbac1ed02c8919924d92bd1bc7ddc70d9 (patch)
treebd3c01d8d178686394dec9cd79dcabd6efe55dc1
parentd0a72674c6eab914be41b637ac11627485111313 (diff)
Add thumbnail for metacafe
-rw-r--r--youtube_dl/extractor/metacafe.py2
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,
}