[metacafe] Add more cases for detecting the uploader detection (reported in #1343)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 31 Aug 2013 20:35:39 +0000 (22:35 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 31 Aug 2013 20:35:39 +0000 (22:35 +0200)
youtube_dl/extractor/metacafe.py

index e38dc98b4c2702be6b488e2e516e1a6ea95c9d8d..e537648ffb83564e56f43f7e1e21a949cc609925 100644 (file)
@@ -122,7 +122,7 @@ class MetacafeIE(InfoExtractor):
         video_title = self._html_search_regex(r'(?im)<title>(.*) - Video</title>', webpage, u'title')
         description = self._og_search_description(webpage)
         video_uploader = self._html_search_regex(
-                r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("channel","([^"]+)"\);',
+                r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("(?:channel|submiter)","([^"]+)"\);',
                 webpage, u'uploader nickname', fatal=False)
 
         return {