commit 7e182627d9963b8c95faab2f2c6213d17a8db745
parent 5dbe81a1d35ae704b5ea208698a6bb785923d71a
Author: Sergey M <dstftw@gmail.com>
Date: Fri, 8 Jan 2016 23:04:32 +0500
Merge pull request #8182 from atomic83/patch-1
Extract xHamster title fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py
@@ -65,7 +65,7 @@ class XHamsterIE(InfoExtractor):
title = self._html_search_regex(
[r'<title>(?P<title>.+?)(?:, (?:[^,]+? )?Porn: xHamster| - xHamster\.com)</title>',
- r'<h1>([^<]+)</h1>'], webpage, 'title')
+ r'<h1(?: itemprop="name")?>([^<]+)</h1>'], webpage, 'title')
# Only a few videos have an description
mobj = re.search(r'<span>Description: </span>([^<]+)', webpage)