Browse Source

[pornhd] Fix title extraction (Closes #7596)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
1b38185361
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/pornhd.py

+ 2
- 1
youtube_dl/extractor/pornhd.py View File

@ -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(


Loading…
Cancel
Save