1 from __future__ import unicode_literals
3 from .common import InfoExtractor
6 class EroProfileIE(InfoExtractor):
7 _VALID_URL = r'https?://(?:www\.)?eroprofile\.com/m/videos/view/(?P<id>[^/]+)'
9 'url': 'http://www.eroprofile.com/m/videos/view/sexy-babe-softcore',
10 'md5': 'c26f351332edf23e1ea28ce9ec9de32f',
13 'display_id': 'sexy-babe-softcore',
15 'title': 'sexy babe softcore',
16 'thumbnail': 're:https?://.*\.jpg',
21 def _real_extract(self, url):
22 display_id = self._match_id(url)
24 webpage = self._download_webpage(url, display_id)
26 video_id = self._search_regex(
27 [r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'],
28 webpage, 'video id', default=None)
30 video_url = self._search_regex(
31 r'<source src="([^"]+)', webpage, 'video url')
32 title = self._html_search_regex(
33 r'Title:</th><td>([^<]+)</td>', webpage, 'title')
34 thumbnail = self._search_regex(
35 r'onclick="showVideoPlayer\(\)"><img src="([^"]+)',
36 webpage, 'thumbnail', fatal=False)
40 'display_id': display_id,
43 'thumbnail': thumbnail,