]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/lovehomeporn.py
debian/patches/remove-autoupdate-mechanism.patch: Remove fewer things to avoid future...
[youtubedl] / youtube_dl / extractor / lovehomeporn.py
1 from __future__ import unicode_literals
2
3 import re
4
5 from .nuevo import NuevoBaseIE
6
7
8 class LoveHomePornIE(NuevoBaseIE):
9 _VALID_URL = r'https?://(?:www\.)?lovehomeporn\.com/video/(?P<id>\d+)(?:/(?P<display_id>[^/?#&]+))?'
10 _TEST = {
11 'url': 'http://lovehomeporn.com/video/48483/stunning-busty-brunette-girlfriend-sucking-and-riding-a-big-dick#menu',
12 'info_dict': {
13 'id': '48483',
14 'display_id': 'stunning-busty-brunette-girlfriend-sucking-and-riding-a-big-dick',
15 'ext': 'mp4',
16 'title': 'Stunning busty brunette girlfriend sucking and riding a big dick',
17 'age_limit': 18,
18 'duration': 238.47,
19 },
20 'params': {
21 'skip_download': True,
22 }
23 }
24
25 def _real_extract(self, url):
26 mobj = re.match(self._VALID_URL, url)
27 video_id = mobj.group('id')
28 display_id = mobj.group('display_id')
29
30 info = self._extract_nuevo(
31 'http://lovehomeporn.com/media/nuevo/config.php?key=%s' % video_id,
32 video_id)
33 info.update({
34 'display_id': display_id,
35 'age_limit': 18
36 })
37 return info