projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caedb07
)
More title extraction fixing.
author
atomic83
<atomic83@riseup.net>
Thu, 24 Sep 2015 21:05:32 +0000
(23:05 +0200)
committer
atomic83
<atomic83@riseup.net>
Thu, 24 Sep 2015 21:05:32 +0000
(23:05 +0200)
youtube_dl/extractor/xhamster.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xhamster.py
b/youtube_dl/extractor/xhamster.py
index f12fe13b11eef4cc0080a1fd1bd3ade82ca62c0a..8938c0e4561d2c6163158e409106dd2e928e85bf 100644
(file)
--- a/
youtube_dl/extractor/xhamster.py
+++ b/
youtube_dl/extractor/xhamster.py
@@
-64,7
+64,7
@@
class XHamsterIE(InfoExtractor):
webpage = self._download_webpage(mrss_url, video_id)
title = self._html_search_regex(
- [r'<title>(?P<title>.+?)(?:,
Free
Porn: xHamster| - xHamster\.com)</title>',
+ [r'<title>(?P<title>.+?)(?:,
(?:[^,]+? )?
Porn: xHamster| - xHamster\.com)</title>',
r'<h1>([^<]+)</h1>'], webpage, 'title')
# Only a few videos have an description