Selaa lähdekoodia

xvideos: Capture only the video title, not the name of the site.

Rogério Brito 14 vuotta sitten
vanhempi
sitoutus
0f9b77223e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      youtube-dl

+ 1 - 1
youtube-dl

@@ -3432,7 +3432,7 @@ class XVideosIE(InfoExtractor):
 
 
 		# Extract title
-		mobj = re.search(r'<title>(.*?)</title>', webpage)
+		mobj = re.search(r'<title>(.*?)\s+-\s+XVID', webpage)
 		if mobj is None:
 			self._downloader.trouble(u'ERROR: unable to extract video title')
 			return