]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/nonktube.py
Import Upstream version 2020.01.24
[youtubedl] / 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 webpage = self._download_webpage(url, video_id)
29
30 title = self._og_search_title(webpage)
31 info = self._parse_html5_media_entries(url, webpage, video_id)[0]
32
33 info.update({
34 'id': video_id,
35 'title': title,
36 'age_limit': 18,
37 })
38 return info