http://video[0-9].pornotube.com/.+\.flv)",'
+ result = re.search(VIDEO_URL_RE, webpage)
+ if result is None:
+ self._downloader.trouble(u'ERROR: unable to extract video url')
+ return
+ video_url = compat_urllib_parse.unquote(result.group('url'))
+ #self.report_extract_entry(video_url)
+
+ #Get the uploaded date
+ VIDEO_UPLOADED_RE = r'Added (?P[0-9\/]+) by'
+ result = re.search(VIDEO_UPLOADED_RE, webpage)
+ if result is None:
+ self._downloader.trouble(u'ERROR: unable to extract video title')
+ return
+ upload_date = result.group('date')
+ #self.report_date(upload_date);
+
+ info = {'id': video_id,
+ 'url': video_url,
+ 'uploader': None,
+ 'upload_date': upload_date,
+ 'title': video_title,
+ 'ext': 'flv',
+ 'format': 'flv',
+ 'thumbnail': None,
+ 'description': None,
+ 'player_url': None}
+
+ return [info]
+
+
+
+class YouJizzIE(InfoExtractor):
+ """Information extractor for youjizz.com."""
+
+ _VALID_URL = r'^(?:https?://)?(?:\w+\.)?youjizz\.com/videos/(?P[^.]+).html$'
+
+ def __init__(self, downloader=None):
+ InfoExtractor.__init__(self, downloader)
+
+ # def report_extract_entry(self, url):
+ # """Report downloading extry"""
+ # self._downloader.to_screen(u'[youjizz] Downloading entry: %s' % url.decode('utf-8'))
+
+ # def report_webpage(self, url):
+ # """Report downloading page"""
+ # self._downloader.to_screen(u'[youjizz] Downloaded page: %s' % url)
+
+ # def report_title(self, video_title):
+ # """Report downloading extry"""
+ # self._downloader.to_screen(u'[youjizz] Title: %s' % video_title.decode('utf-8'))
+
+ # def report_embed_page(self, embed_page):
+ # """Report downloading extry"""
+ # self._downloader.to_screen(u'[youjizz] Embed Page: %s' % embed_page.decode('utf-8'))
+
+ def _real_extract(self, url):
+ mobj = re.match(self._VALID_URL, url)
+ if mobj is None:
+ self._downloader.trouble(u'ERROR: invalid URL: %s' % url)
+ return
+
+ video_id = mobj.group('videoid')
+
+ # Get webpage content
+ webpage = self._download_webpage(url, video_id)
+ #self.report_webpage(url)
+
+ # Get the video title
+ VIDEO_TITLE_RE = r'(?P.*)'
+ result = re.search(VIDEO_TITLE_RE, webpage)
+ if result is None:
+ self._downloader.trouble(u'ERROR: unable to extract video title')
+ return
+ video_title = result.group('title').strip()
+ #self.report_title(video_title)
+
+ # Get the embed page
+ EMBED_PAGE_RE = r'http://www.youjizz.com/videos/embed/(?P[0-9]+)'
+ result = re.search(EMBED_PAGE_RE, webpage)
+ if result is None:
+ self._downloader.trouble(u'ERROR: unable to extract embed page')
+ return
+
+ embed_page_url = result.group(0).strip()
+ video_id = result.group('videoid')
+ #self.report_embed_page(embed_page_url)
+
+ webpage = self._download_webpage(embed_page_url, video_id)
+
+ # Get the video URL
+ SOURCE_RE = r'so.addVariable\("file",encodeURIComponent\("(?P