diff --git a/youtube_dl/extractor/hellporno.py b/youtube_dl/extractor/hellporno.py index 7a1c75b65..abe18696a 100644 --- a/youtube_dl/extractor/hellporno.py +++ b/youtube_dl/extractor/hellporno.py @@ -10,8 +10,8 @@ from ..utils import ( class HellPornoIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?hellporno\.com/videos/(?P[^/]+)' - _TEST = { + _VALID_URL = r'https?://(?:www\.)?hellporno\.((com/videos)|(net/v))/(?P[^/]+)' + _TESTS = [{ 'url': 'http://hellporno.com/videos/dixie-is-posing-with-naked-ass-very-erotic/', 'md5': '1fee339c610d2049699ef2aa699439f1', 'info_dict': { @@ -22,7 +22,18 @@ class HellPornoIE(InfoExtractor): 'thumbnail': 're:https?://.*\.jpg$', 'age_limit': 18, } - } + }, { + 'url' : 'http://hellporno.net/v/186486/', + 'md5': '65adb331709d68d01067527d5547ae88', + 'info_dict': { + 'id': '186486', + 'display_id': '186486', + 'ext': 'mp4', + 'title': 'Tattooed brunette tries anal sex with a big cock', + 'thumbnail': 're:https?://.*\.jpg/$', + 'age_limit': 18, + } + }] def _real_extract(self, url): display_id = self._match_id(url) @@ -38,7 +49,9 @@ class HellPornoIE(InfoExtractor): video_id = flashvars.get('video_id') thumbnail = flashvars.get('preview_url') - ext = flashvars.get('postfix', '.mp4')[1:] + ext = flashvars.get('postfix') + if ext is not None: + ext = ext[ext.rfind(".")+1:] formats = [] for video_url_key in ['video_url', 'video_alt_url']: