fixed MetacafeIE (uploader nickname regex) - closes #515
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Tue, 6 Nov 2012 22:08:10 +0000 (23:08 +0100)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Tue, 6 Nov 2012 22:08:10 +0000 (23:08 +0100)
youtube_dl/InfoExtractors.py

index 9df521d0233d806a83e3f5abf648f2e3a22b690f..a5c8b91341079a8d02aab6955ca7edd6761a63bd 100644 (file)
@@ -603,7 +603,7 @@ class MetacafeIE(InfoExtractor):
                        return
                video_title = mobj.group(1).decode('utf-8')
 
-               mobj = re.search(r'(?ms)By:\s*<a .*?>(.+?)<', webpage)
+               mobj = re.search(r'submitter=(.*?);', webpage)
                if mobj is None:
                        self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
                        return