Explorar o código

Fix the DailymotionIE to parse the new title of a webpage

Laurent Raufaste %!s(int64=14) %!d(string=hai) anos
pai
achega
8abf76ddb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube-dl

+ 1 - 1
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