From: Sergey M․ Date: Fri, 17 Jun 2016 22:42:20 +0000 (+0700) Subject: [pornhd] Detect removed videos and modernize X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=667d96480b4f9c78ceace063415c3424d4d562ea;p=youtube-dl [pornhd] Detect removed videos and modernize --- diff --git a/youtube_dl/extractor/pornhd.py b/youtube_dl/extractor/pornhd.py index e7721b013..7a5f00fe0 100644 --- a/youtube_dl/extractor/pornhd.py +++ b/youtube_dl/extractor/pornhd.py @@ -1,10 +1,10 @@ from __future__ import unicode_literals import re -import json from .common import InfoExtractor from ..utils import ( + ExtractorError, int_or_none, js_to_json, ) @@ -37,17 +37,17 @@ class PornHdIE(InfoExtractor): title = self._html_search_regex( [r']+class=["\']video-name["\'][^>]*>([^<]+)', r'(.+?) - .*?[Pp]ornHD.*?'], webpage, 'title') - description = self._html_search_regex( - r'<(div|p)[^>]+class="description"[^>]*>(?P[^<]+)]+class="no-video"[^>]*>(?P.+?)]+class="description"[^>]*>(?P[^<]+)