summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-07-17 10:45:24 +0200
committerPhilipp Hagemeister <[email protected]>2013-07-17 10:45:24 +0200
commitf085f960e7d4f1883a12575fcbcd95de75d7437d (patch)
tree40eab8ff8e6dae4cb9fbffa93de9e9e9a88b5a68
parentf38de77f6ec5548c94c6183d0240381c31320711 (diff)
downloadyoutube-dl-f085f960e7d4f1883a12575fcbcd95de75d7437d.tar.gz
youtube-dl-f085f960e7d4f1883a12575fcbcd95de75d7437d.zip
[metacafe] Fix uploader detection
-rw-r--r--youtube_dl/extractor/metacafe.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py
index 94d9ef62f..ad41f50eb 100644
--- a/youtube_dl/extractor/metacafe.py
+++ b/youtube_dl/extractor/metacafe.py
@@ -119,7 +119,9 @@ class MetacafeIE(InfoExtractor):
video_ext = determine_ext(video_url)
video_title = self._html_search_regex(r'(?im)<title>(.*) - Video</title>', webpage, u'title')
- video_uploader = self._html_search_regex(r'submitter=(.*?);|<p class="By">\s*By\s*<a[^>]*>(.*?)</a>', webpage, u'uploader nickname', fatal=False)
+ video_uploader = self._html_search_regex(
+ r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("channel","([^"]+)"\);',
+ webpage, u'uploader nickname', fatal=False)
return [{
'id': video_id,