[TNAFlix] Restore test

See dstftw's comment in #5772
master
frenchy1983 9 years ago
parent e7752cd578
commit ed5a637d62

@ -10,16 +10,18 @@ class EMPFlixIE(TNAFlixIE):
_DESCRIPTION_REGEX = r'name="description" value="([^"]*)"' _DESCRIPTION_REGEX = r'name="description" value="([^"]*)"'
_CONFIG_REGEX = r'flashvars\.config\s*=\s*escape\("([^"]+)"' _CONFIG_REGEX = r'flashvars\.config\s*=\s*escape\("([^"]+)"'
_TEST = { _TESTS = [
'url': 'http://www.empflix.com/videos/Amateur-Finger-Fuck-33051.html', {
'md5': 'b1bc15b6412d33902d6e5952035fcabc', 'url': 'http://www.empflix.com/videos/Amateur-Finger-Fuck-33051.html',
'info_dict': { 'md5': 'b1bc15b6412d33902d6e5952035fcabc',
'id': '33051', 'info_dict': {
'display_id': 'Amateur-Finger-Fuck', 'id': '33051',
'ext': 'mp4', 'display_id': 'Amateur-Finger-Fuck',
'title': 'Amateur Finger Fuck', 'ext': 'mp4',
'description': 'Amateur solo finger fucking.', 'title': 'Amateur Finger Fuck',
'thumbnail': 're:https?://.*\.jpg$', 'description': 'Amateur solo finger fucking.',
'age_limit': 18, 'thumbnail': 're:https?://.*\.jpg$',
'age_limit': 18,
}
} }
} ]

@ -16,20 +16,26 @@ class TNAFlixIE(InfoExtractor):
_DESCRIPTION_REGEX = r'<h3 itemprop="description">([^<]+)</h3>' _DESCRIPTION_REGEX = r'<h3 itemprop="description">([^<]+)</h3>'
_CONFIG_REGEX = r'flashvars\.config\s*=\s*escape\("([^"]+)"' _CONFIG_REGEX = r'flashvars\.config\s*=\s*escape\("([^"]+)"'
_TEST = { _TESTS = [
'url': 'https://www.tnaflix.com/amateur-porn/bunzHD-Ms.Donk/video358632', {
'md5': '6c431ea56756497e227fb3f01a687869', 'url': 'http://www.tnaflix.com/porn-stars/Carmella-Decesare-striptease/video553878',
'info_dict': { 'md5': 'ecf3498417d09216374fc5907f9c6ec0',
'id': '358632', 'info_dict': {
'display_id': 'bunzHD-Ms.Donk', 'id': '553878',
'ext': 'mp4', 'display_id': 'Carmella-Decesare-striptease',
'title': 'bunzHD Ms.Donk', 'ext': 'mp4',
'description': 'bubble booty ebony teen goddess Ms.Donk has a firm ass and acts like she is shy but really she is a freak in the sheets watch her 20 min XX rated vid at bunzHD.com click on the catalog link', 'title': 'Carmella Decesare - striptease',
'thumbnail': 're:https?://.*\.jpg$', 'description': '',
'duration': 394, 'thumbnail': 're:https?://.*\.jpg$',
'age_limit': 18, 'duration': 91,
'age_limit': 18,
}
},
{
'url': 'https://www.tnaflix.com/amateur-porn/bunzHD-Ms.Donk/video358632',
'matching_only': True,
} }
} ]
def _real_extract(self, url): def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)

Loading…
Cancel
Save