0
0
Fork 0

[pornhd] Fix title extraction (Closes #7596)

main
Sergey M․ 2015-11-22 18:08:30 +06:00
parent 9cb9a5df77
commit 1b38185361
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ class PornHdIE(InfoExtractor):
webpage = self._download_webpage(url, display_id or video_id) webpage = self._download_webpage(url, display_id or video_id)
title = self._html_search_regex( 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( description = self._html_search_regex(
r'<div class="description">([^<]+)</div>', webpage, 'description', fatal=False) r'<div class="description">([^<]+)</div>', webpage, 'description', fatal=False)
view_count = int_or_none(self._html_search_regex( view_count = int_or_none(self._html_search_regex(