Skip to content

A feature-rich command-line audio/video downloader

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

Rogério Brito0f9b77223e92
diff --git a/youtube-dl b/youtube-dl
index f895658fbf..6770678d2d 100755
--- a/youtube-dl
+++ b/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