]>
Commit | Line | Data |
---|---|---|
b6eb74e3 S |
1 | from __future__ import unicode_literals |
2 | ||
3 | from .nuevo import NuevoBaseIE | |
4 | ||
5 | ||
6 | class NonkTubeIE(NuevoBaseIE): | |
7 | _VALID_URL = r'https?://(?:www\.)?nonktube\.com/(?:(?:video|embed)/|media/nuevo/embed\.php\?.*?\bid=)(?P<id>\d+)' | |
8 | _TESTS = [{ | |
9 | 'url': 'https://www.nonktube.com/video/118636/sensual-wife-uncensored-fucked-in-hairy-pussy-and-facialized', | |
10 | 'info_dict': { | |
11 | 'id': '118636', | |
12 | 'ext': 'mp4', | |
13 | 'title': 'Sensual Wife Uncensored Fucked In Hairy Pussy And Facialized', | |
14 | 'age_limit': 18, | |
15 | 'duration': 1150.98, | |
16 | }, | |
17 | 'params': { | |
18 | 'skip_download': True, | |
19 | } | |
20 | }, { | |
21 | 'url': 'https://www.nonktube.com/embed/118636', | |
22 | 'only_matching': True, | |
23 | }] | |
24 | ||
25 | def _real_extract(self, url): | |
26 | video_id = self._match_id(url) | |
27 | ||
28 | nuevo_url = 'https://www.nonktube.com/media/nuevo/config.php?key=%s' % video_id | |
29 | ||
30 | info = self._extract_nuevo( | |
31 | nuevo_url, video_id, headers={ | |
32 | 'Referer': 'https://www.nonktube.com/media/nuevo/player.swf?config=%s' % nuevo_url | |
33 | }) | |
34 | info.update({ | |
35 | 'age_limit': 18 | |
36 | }) | |
37 | return info |