From 545a23f11bbdf27d6d204225c578512af7184e0b Mon Sep 17 00:00:00 2001 From: atomic83 Date: Thu, 24 Sep 2015 23:05:32 +0200 Subject: [PATCH] More title extraction fixing. --- youtube_dl/extractor/xhamster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index f12fe13b1..8938c0e45 100644 --- 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'(?P<title>.+?)(?:, Free Porn: xHamster| - xHamster\.com)', + [r'(?P<title>.+?)(?:, (?:[^,]+? )?Porn: xHamster| - xHamster\.com)', r'

([^<]+)

'], webpage, 'title') # Only a few videos have an description -- 2.22.2