[youtube] Skip unsupported adaptive stream type (#18804)
[youtube-dl] / youtube_dl / extractor / nonktube.py
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         info = self._extract_nuevo(
29             'https://www.nonktube.com/media/nuevo/econfig.php?key=%s'
30             % video_id, video_id)
31
32         info['age_limit'] = 18
33         return info