[metacafe] Fix uploader detection
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 17 Jul 2013 08:45:24 +0000 (10:45 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 17 Jul 2013 08:45:24 +0000 (10:45 +0200)
youtube_dl/extractor/metacafe.py

index 94d9ef62f44ece41df5a927f22f7c8b6b4448309..ad41f50eb4b12841dd320f23014e4dc88d860f51 100644 (file)
@@ -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,