xvideos: Capture only the video title, not the name of the site.
authorRogério Brito <rbrito@ime.usp.br>
Tue, 18 Oct 2011 20:42:01 +0000 (18:42 -0200)
committerRogério Brito <rbrito@ime.usp.br>
Tue, 18 Oct 2011 20:42:01 +0000 (18:42 -0200)
youtube-dl

index f895658..6770678 100755 (executable)
@@ -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