Make the Dailymotion uploader regexp more flexible because it fails sometimes
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 6 Jul 2010 16:52:46 +0000 (18:52 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:28:17 +0000 (11:28 +0100)
youtube-dl

index 19acce12768543f0ee5f856e820213228356d96e..36f392c838b798eda42799f17e3b76ddd751a216 100755 (executable)
@@ -1149,7 +1149,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></div>', webpage)
+               mobj = re.search(r'(?im)<div class="dmco_html owner">.*?<a class="name" href="/.+?">(.+?)</a></div>', webpage)
                if mobj is None:
                        self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
                        return