aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/empflix.py
blob: 9a5a8f4bb44039e6c52968801033a3d12a73d835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from __future__ import unicode_literals

from .tnaflix import TNAFlixIE


class EMPFlixIE(TNAFlixIE):
    _VALID_URL = r'https?://(?:www\.)?empflix\.com/videos/(?P<display_id>.+?)-(?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\("([^"]+)"'

    _TESTS = [
        {
            'url': 'http://www.empflix.com/videos/Amateur-Finger-Fuck-33051.html',
            'md5': 'b1bc15b6412d33902d6e5952035fcabc',
            'info_dict': {
                'id': '33051',
                'display_id': 'Amateur-Finger-Fuck',
                'ext': 'mp4',
                'title': 'Amateur Finger Fuck',
                'description': 'Amateur solo finger fucking.',
                'thumbnail': 're:https?://.*\.jpg$',
                'age_limit': 18,
            }
        },
        {
            'url': 'http://www.empflix.com/videos/[AROMA][ARMD-718]-Aoi-Yoshino-Sawa-25826.html',
            'matching_only': True,
        }
    ]