diff --git a/youtube_dl/extractor/pear.py b/youtube_dl/extractor/pear.py index 52ed63d9a..77fd46852 100644 --- a/youtube_dl/extractor/pear.py +++ b/youtube_dl/extractor/pear.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from .common import InfoExtractor + class PearIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?pearvideo\.com/video_(?P[0-9]+)' _TEST = { @@ -20,14 +21,14 @@ class PearIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - title = self._html_search_regex(r']+class="video-tt">(.+)', webpage, 'title') + title = self._html_search_regex(r']+class="video-tt">(.+)', webpage, 'title', fatal=False) description = self._html_search_regex(r']+class="summary"[^>]*>([^<]+)<', webpage, 'description', fatal=False) - hdUrl = self._html_search_regex(r'hdUrl="(.*?)"', webpage, 'url') + url = self._html_search_regex(r'hdUrl="(.*?)"', webpage, 'url', fatal=False) return { 'id': video_id, 'ext': 'mp4', 'title': title, 'description': description, - 'url': hdUrl - } \ No newline at end of file + 'url': url + }