Fix dailymotion support (closes #60)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Fri, 21 Jan 2011 17:16:33 +0000 (18:16 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Fri, 21 Jan 2011 17:16:33 +0000 (18:16 +0100)
youtube-dl

index 103189b21f1c317e058e91fa3f8a02056f6c70f1..869a32b0ac38f5c4f20c38f1066b623b0dd74cd1 100755 (executable)
@@ -1302,7 +1302,7 @@ class DailymotionIE(InfoExtractor):
                video_title = mobj.group(1).decode('utf-8')
                video_title = sanitize_title(video_title)
 
-               mobj = re.search(r'(?im)<div class="dmco_html owner">.*?<a class="name" href="/.+?">(.+?)</a>', webpage)
+               mobj = re.search(r'(?im)<Attribute name="owner">(.+?)</Attribute>', webpage)
                if mobj is None:
                        self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
                        return