[cleanup] Make more playlist entries lazy (#11763)
[yt-dlp.git] / yt_dlp / extractor / nonktube.py
blob192e6bb52ac10d83ef69c25ef6be0319261defdd
1 from .nuevo import NuevoBaseIE
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,
15 'params': {
16 'skip_download': True,
18 }, {
19 'url': 'https://www.nonktube.com/embed/118636',
20 'only_matching': True,
23 def _real_extract(self, url):
24 video_id = self._match_id(url)
26 webpage = self._download_webpage(url, video_id)
28 title = self._og_search_title(webpage)
29 info = self._parse_html5_media_entries(url, webpage, video_id)[0]
31 info.update({
32 'id': video_id,
33 'title': title,
34 'age_limit': 18,
36 return info