Skip to content

A feature-rich command-line audio/video downloader

Make the Dailymotion uploader regexp more flexible because it fails sometimes

Ricardo Garcia7e2dd306fece
diff --git a/youtube-dl b/youtube-dl
index 19acce1276..36f392c838 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -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