Skip to content

A feature-rich command-line audio/video downloader

Fix the DailymotionIE to parse the new title of a webpage

Laurent Raufaste8abf76ddb90c
diff --git a/youtube-dl b/youtube-dl
index 8c4c320df1..042b852671 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -1618,7 +1618,7 @@ class DailymotionIE(InfoExtractor):
video_url = mediaURL
- mobj = re.search(r'(?im)<title>Dailymotion\s*-\s*(.+)\s*-\s*[^<]+?</title>', webpage)
+ mobj = re.search(r'(?im)<title>\s*(.+)\s*-\s*Video\s+Dailymotion</title>', webpage)
if mobj is None:
self._downloader.trouble(u'ERROR: unable to extract title')
return