diff options
| author | Sergey M․ <dstftw@gmail.com> | 2016-06-18 05:30:46 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2016-06-18 05:30:46 +0700 | 
| commit | d0d93f76ea0dd1dae15bdba6059815d9cc467b05 (patch) | |
| tree | 9675f0940ecda76554a8e805367dccf5d9ed293c | |
| parent | 20a6a154fe8e6a5d246ad1326c4082ddd6091718 (diff) | |
[pornhd] Fix metadata extraction
| -rw-r--r-- | youtube_dl/extractor/pornhd.py | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/pornhd.py b/youtube_dl/extractor/pornhd.py index 39b53ecf6..33faf5e58 100644 --- a/youtube_dl/extractor/pornhd.py +++ b/youtube_dl/extractor/pornhd.py @@ -39,9 +39,10 @@ class PornHdIE(InfoExtractor):              [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) +            r'<(div|p)[^>]+class="description"[^>]*>(?P<value>[^<]+)</\1', +            webpage, 'description', fatal=False, group='value')          view_count = int_or_none(self._html_search_regex( -            r'(\d+) views\s*</span>', webpage, 'view count', fatal=False)) +            r'(\d+) views\s*<', webpage, 'view count', fatal=False))          thumbnail = self._search_regex(              r"'poster'\s*:\s*'([^']+)'", webpage, 'thumbnail', fatal=False)  | 
