From: Sergey M․ Date: Fri, 17 Jun 2016 22:30:46 +0000 (+0700) Subject: [pornhd] Fix metadata extraction X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d0d93f76ea0dd1dae15bdba6059815d9cc467b05;p=youtube-dl [pornhd] Fix metadata extraction --- 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']+class=["\']video-name["\'][^>]*>([^<]+)', r'(.+?) - .*?[Pp]ornHD.*?'], webpage, 'title') description = self._html_search_regex( - r'
([^<]+)
', webpage, 'description', fatal=False) + r'<(div|p)[^>]+class="description"[^>]*>(?P[^<]+)', 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)