aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-22 18:08:30 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-22 18:08:30 +0600
commit1b38185361e096d6e34db11adac7333ac9dadca0 (patch)
tree3ff19f1e083ee2a761cec7dd8795787190af935f /youtube_dl
parent9cb9a5df7794579c38efff1c4b1451a7d13da3c1 (diff)
[pornhd] Fix title extraction (Closes #7596)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/pornhd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pornhd.py b/youtube_dl/extractor/pornhd.py
index dbb2c3bd9..57c78ba52 100644
--- 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(