[hellporno] Add extraction for .net zone, fix tests (wrong extension)
This commit is contained in:
parent
58355a3bf1
commit
ceb030a1eb
@ -10,8 +10,8 @@ from ..utils import (
|
||||
|
||||
|
||||
class HellPornoIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?hellporno\.com/videos/(?P<id>[^/]+)'
|
||||
_TEST = {
|
||||
_VALID_URL = r'https?://(?:www\.)?hellporno\.((com/videos)|(net/v))/(?P<id>[^/]+)'
|
||||
_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']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user