1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00
youtube-dl/youtube_dl/extractor/empflix.py

26 lines
864 B
Python
Raw Normal View History

2014-05-13 08:14:05 +00:00
from __future__ import unicode_literals
2014-09-03 14:08:36 +00:00
from .tnaflix import TNAFlixIE
2014-05-12 11:10:29 +00:00
2014-09-03 14:08:36 +00:00
class EMPFlixIE(TNAFlixIE):
_VALID_URL = r'^https?://www\.empflix\.com/videos/(?P<display_id>[0-9a-zA-Z-]+)-(?P<id>[0-9]+)\.html'
_TITLE_REGEX = r'name="title" value="(?P<title>[^"]*)"'
_DESCRIPTION_REGEX = r'name="description" value="([^"]*)"'
_CONFIG_REGEX = r'flashvars\.config\s*=\s*escape\("([^"]+)"'
2014-05-13 08:14:05 +00:00
2014-05-12 11:10:29 +00:00
_TEST = {
2014-05-13 08:14:05 +00:00
'url': 'http://www.empflix.com/videos/Amateur-Finger-Fuck-33051.html',
2014-05-23 18:06:03 +00:00
'md5': 'b1bc15b6412d33902d6e5952035fcabc',
2014-05-13 08:14:05 +00:00
'info_dict': {
'id': '33051',
2014-09-03 14:08:36 +00:00
'display_id': 'Amateur-Finger-Fuck',
2014-05-23 18:06:03 +00:00
'ext': 'mp4',
2014-05-13 08:14:05 +00:00
'title': 'Amateur Finger Fuck',
2014-05-23 18:06:03 +00:00
'description': 'Amateur solo finger fucking.',
2014-09-03 14:08:36 +00:00
'thumbnail': 're:https?://.*\.jpg$',
2014-05-13 08:14:05 +00:00
'age_limit': 18,
2014-05-12 11:10:29 +00:00
}
}