youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit d0d93f76ea0dd1dae15bdba6059815d9cc467b05
parent 20a6a154fe8e6a5d246ad1326c4082ddd6091718
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 18 Jun 2016 05:30:46 +0700

[pornhd] Fix metadata extraction

Diffstat:
Myoutube_dl/extractor/pornhd.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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)