]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/empflix.py
debian/changelog: Annotate bugs to close.
[youtubedl] / youtube_dl / extractor / empflix.py
1 from __future__ import unicode_literals
2
3 from .tnaflix import TNAFlixIE
4
5
6 class EMPFlixIE(TNAFlixIE):
7 _VALID_URL = r'https?://(?:www\.)?empflix\.com/videos/(?P<display_id>.+?)-(?P<id>[0-9]+)\.html'
8
9 _TITLE_REGEX = r'name="title" value="(?P<title>[^"]*)"'
10 _DESCRIPTION_REGEX = r'name="description" value="([^"]*)"'
11 _CONFIG_REGEX = r'flashvars\.config\s*=\s*escape\("([^"]+)"'
12
13 _TESTS = [
14 {
15 'url': 'http://www.empflix.com/videos/Amateur-Finger-Fuck-33051.html',
16 'md5': 'b1bc15b6412d33902d6e5952035fcabc',
17 'info_dict': {
18 'id': '33051',
19 'display_id': 'Amateur-Finger-Fuck',
20 'ext': 'mp4',
21 'title': 'Amateur Finger Fuck',
22 'description': 'Amateur solo finger fucking.',
23 'thumbnail': 're:https?://.*\.jpg$',
24 'age_limit': 18,
25 }
26 },
27 {
28 'url': 'http://www.empflix.com/videos/[AROMA][ARMD-718]-Aoi-Yoshino-Sawa-25826.html',
29 'only_matching': True,
30 }
31 ]