logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 1b38185361e096d6e34db11adac7333ac9dadca0
parent 9cb9a5df7794579c38efff1c4b1451a7d13da3c1
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 22 Nov 2015 18:08:30 +0600

[pornhd] Fix title extraction (Closes #7596)

Diffstat:

Myoutube_dl/extractor/pornhd.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/pornhd.py b/youtube_dl/extractor/pornhd.py @@ -36,7 +36,8 @@ class PornHdIE(InfoExtractor): webpage = self._download_webpage(url, display_id or video_id) title = self._html_search_regex( - r'<title>(.+) porn HD.+?</title>', webpage, 'title') + [r'<span[^>]+class=["\']video-name["\'][^>]*>([^<]+)', + r'<title>(.+?) - .*?[Pp]ornHD.*?</title>'], webpage, 'title') description = self._html_search_regex( r'<div class="description">([^<]+)</div>', webpage, 'description', fatal=False) view_count = int_or_none(self._html_search_regex(