]> jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/nonktube.py
[ie/orf:on] Improve extraction (#9677)
[yt-dlp.git] / yt_dlp / extractor / nonktube.py
1 from .nuevo import NuevoBaseIE
2
3
4 class NonkTubeIE(NuevoBaseIE):
5 _VALID_URL = r'https?://(?:www\.)?nonktube\.com/(?:(?:video|embed)/|media/nuevo/embed\.php\?.*?\bid=)(?P<id>\d+)'
6 _TESTS = [{
7 'url': 'https://www.nonktube.com/video/118636/sensual-wife-uncensored-fucked-in-hairy-pussy-and-facialized',
8 'info_dict': {
9 'id': '118636',
10 'ext': 'mp4',
11 'title': 'Sensual Wife Uncensored Fucked In Hairy Pussy And Facialized',
12 'age_limit': 18,
13 'duration': 1150.98,
14 },
15 'params': {
16 'skip_download': True,
17 }
18 }, {
19 'url': 'https://www.nonktube.com/embed/118636',
20 'only_matching': True,
21 }]
22
23 def _real_extract(self, url):
24 video_id = self._match_id(url)
25
26 webpage = self._download_webpage(url, video_id)
27
28 title = self._og_search_title(webpage)
29 info = self._parse_html5_media_entries(url, webpage, video_id)[0]
30
31 info.update({
32 'id': video_id,
33 'title': title,
34 'age_limit': 18,
35 })
36 return info