From: atomic83 Date: Thu, 24 Sep 2015 21:05:32 +0000 (+0200) Subject: More title extraction fixing. X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=commitdiff_plain;h=545a23f11bbdf27d6d204225c578512af7184e0b More title extraction fixing. --- 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