3 from .common import InfoExtractor
6 class RedTubeIE(InfoExtractor):
7 _VALID_URL = r'(?:http://)?(?:www\.)?redtube\.com/(?P<id>[0-9]+)'
9 u'url': u'http://www.redtube.com/66418',
10 u'file': u'66418.mp4',
11 u'md5': u'7b8c22b5e7098a3e1c09709df1126d2d',
13 u"title": u"Sucked on a toilet",
18 def _real_extract(self, url):
19 mobj = re.match(self._VALID_URL, url)
21 video_id = mobj.group('id')
22 video_extension = 'mp4'
23 webpage = self._download_webpage(url, video_id)
25 self.report_extraction(video_id)
27 video_url = self._html_search_regex(
28 r'<source src="(.+?)" type="video/mp4">', webpage, u'video URL')
30 video_title = self._html_search_regex(
31 r'<h1 class="videoTitle slidePanelMovable">(.+?)</h1>',
34 # No self-labeling, but they describe themselves as
35 # "Home of Videos Porno"
41 'ext': video_extension,
43 'age_limit': age_limit,