3 from .common import InfoExtractor
8 class SlutloadIE(InfoExtractor):
9 _VALID_URL = r'^https?://(?:\w+\.)?slutload\.com/video/[^/]+/(?P<videoid>[^/]+)/?$'
11 u'url': u'http://www.slutload.com/video/virginie-baisee-en-cam/TD73btpBqSxc/',
12 u'file': u'TD73btpBqSxc.mp4',
13 u'md5': u'0cf531ae8006b530bd9df947a6a0df77',
15 u"title": u"virginie baisee en cam",
20 def _real_extract(self, url):
21 mobj = re.match(self._VALID_URL, url)
23 video_id = mobj.group('videoid')
26 webpage = self._download_webpage(url, video_id)
29 video_title = self._html_search_regex(r'<h1><strong>([^<]+)</strong>',
30 webpage, u'title').strip()
33 result = re.compile(r'<div id="vidPlayer"\s+data-url="([^"]+)"\s+previewer-file="([^"]+)"', re.S).search(webpage)
35 raise ExtractorError(u'ERROR: unable to extract video_url')
37 video_url, video_thumb = result.group(1,2)
39 info = {'id': video_id,
42 'thumbnail': video_thumb,