aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRogério Brito <rbrito@ime.usp.br>2011-10-18 18:42:01 -0200
committerRogério Brito <rbrito@ime.usp.br>2011-10-18 18:42:01 -0200
commit0f9b77223e92a25eb1f4a626efcd7ff76beb9841 (patch)
treeee38c3eadb77065c42fc51b9c4c6be42a3d18895
parent9f47175a405a8685463a6bc719e09359c0f7c5c1 (diff)
downloadyoutube-dl-0f9b77223e92a25eb1f4a626efcd7ff76beb9841.tar.xz
xvideos: Capture only the video title, not the name of the site.
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index f895658fb..6770678d2 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