Fix detection of uploader nickname in metacafe (fixes issue #67)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 24 Nov 2009 19:40:34 +0000 (20:40 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:24:56 +0000 (11:24 +0100)
youtube-dl

index 52bda1b2533e9b8b5c63274074f285a8cccced95..739e3cd7c2c492469aed988dffba348893a42839 100755 (executable)
@@ -868,7 +868,7 @@ class MetacafeIE(InfoExtractor):
                        return
                video_title = mobj.group(1).decode('utf-8')
 
-               mobj = re.search(r'(?ms)<li id="ChnlUsr">.*?Submitter:.*?<a .*?>(.*?)<', webpage)
+               mobj = re.search(r'(?ms)By:\s*<a .*?>(.+?)<', webpage)
                if mobj is None:
                        self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
                        return