1 from __future__ import unicode_literals
3 from .nuevo import NuevoBaseIE
6 class RulePornIE(NuevoBaseIE):
7 _VALID_URL = r'https?://(?:www\.)?ruleporn\.com/(?:[^/?#&]+/)*(?P<id>[^/?#&]+)'
9 'url': 'http://ruleporn.com/brunette-nympho-chick-takes-her-boyfriend-in-every-angle/',
10 'md5': '86861ebc624a1097c7c10eaf06d7d505',
13 'display_id': 'brunette-nympho-chick-takes-her-boyfriend-in-every-angle',
15 'title': 'Brunette Nympho Chick Takes Her Boyfriend In Every Angle',
16 'description': 'md5:6d28be231b981fff1981deaaa03a04d5',
22 def _real_extract(self, url):
23 display_id = self._match_id(url)
25 webpage = self._download_webpage(url, display_id)
27 video_id = self._search_regex(
28 r'lovehomeporn\.com/embed/(\d+)', webpage, 'video id')
30 title = self._search_regex(
31 r'<h2[^>]+title=(["\'])(?P<url>.+?)\1',
32 webpage, 'title', group='url')
33 description = self._html_search_meta('description', webpage)
35 info = self._extract_nuevo(
36 'http://lovehomeporn.com/media/nuevo/econfig.php?key=%s&rp=true' % video_id,
39 'display_id': display_id,
41 'description': description,