]> git.bitcoin.ninja Git - youtube-dl/commitdiff
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 f895658fbfbf79c699332ace64ab6c36028e7cbf..6770678d2d4c4a655ea46e547bfd0e3169f00969 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