Skip to content

Commit

Permalink
[pornhd] Fix title extraction (Closes #7596)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Nov 22, 2015
1 parent 9cb9a5d commit 1b38185
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/pornhd.py
Expand Up @@ -36,7 +36,8 @@ def _real_extract(self, url):
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(
Expand Down

0 comments on commit 1b38185

Please sign in to comment.