[ie/dropbox] Fix password-protected video extraction (#11636)
[yt-dlp3.git] / yt_dlp / extractor / lovehomeporn.py
blob63b75a3d37eb1be4d145f7703fb362dc99f00340
1 from .nuevo import NuevoBaseIE
4 class LoveHomePornIE(NuevoBaseIE):
5 _VALID_URL = r'https?://(?:www\.)?lovehomeporn\.com/video/(?P<id>\d+)(?:/(?P<display_id>[^/?#&]+))?'
6 _TEST = {
7 'url': 'http://lovehomeporn.com/video/48483/stunning-busty-brunette-girlfriend-sucking-and-riding-a-big-dick#menu',
8 'info_dict': {
9 'id': '48483',
10 'display_id': 'stunning-busty-brunette-girlfriend-sucking-and-riding-a-big-dick',
11 'ext': 'mp4',
12 'title': 'Stunning busty brunette girlfriend sucking and riding a big dick',
13 'age_limit': 18,
14 'duration': 238.47,
16 'params': {
17 'skip_download': True,
21 def _real_extract(self, url):
22 mobj = self._match_valid_url(url)
23 video_id = mobj.group('id')
24 display_id = mobj.group('display_id')
26 info = self._extract_nuevo(
27 f'http://lovehomeporn.com/media/nuevo/config.php?key={video_id}',
28 video_id)
29 info.update({
30 'display_id': display_id,
31 'age_limit': 18,
33 return info