aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/pornhd.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-18 05:30:46 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-18 05:30:46 +0700
commitd0d93f76ea0dd1dae15bdba6059815d9cc467b05 (patch)
tree9675f0940ecda76554a8e805367dccf5d9ed293c /youtube_dl/extractor/pornhd.py
parent20a6a154fe8e6a5d246ad1326c4082ddd6091718 (diff)
downloadyoutube-dl-d0d93f76ea0dd1dae15bdba6059815d9cc467b05.zip
youtube-dl-d0d93f76ea0dd1dae15bdba6059815d9cc467b05.tar.gz
youtube-dl-d0d93f76ea0dd1dae15bdba6059815d9cc467b05.tar.bz2
[pornhd] Fix metadata extraction
Diffstat (limited to 'youtube_dl/extractor/pornhd.py')
-rw-r--r--youtube_dl/extractor/pornhd.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/pornhd.py b/youtube_dl/extractor/pornhd.py
index 39b53ec..33faf5e 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)