- # get real url
- n1 = self._search_regex(
- r'so.addVariable\(\'file\',\'(?P<n1>\d+)\'', webpage, 'n1')
- n2 = self._search_regex(
- r'so.addVariable\(\'seccode\',\'(?P<n2>.+?)\'', webpage, 'n2')
- n3 = self._search_regex(
- r'so.addVariable\(\'max_vid\',\'(?P<n3>\d+)\'', webpage, 'n3')
- if not (n1 and n2 and n3):
- raise ExtractorError("You are Blocked by Server.")
- url_params = compat_urllib_parse.urlencode({
- 'VID': n1,
- 'mp4': '1',
- 'seccode': n2,
- 'max_vid': n3,
- })
- t_url = 'http://91porn.com/getfile.php?' + url_params
- info_cn = self._download_webpage(t_url, video_id, "get real video_url")
- video_url = self._search_regex(r'file=(?P<url>http.+?)&', info_cn, 'url')
+ info_dict = self._parse_html5_media_entries(url, webpage, video_id)[0]
+
+ duration = parse_duration(self._search_regex(
+ r'时长:\s*</span>\s*(\d+:\d+)', webpage, 'duration', fatal=False))
+
+ comment_count = int_or_none(self._search_regex(
+ r'留言:\s*</span>\s*(\d+)', webpage, 'comment count', fatal=False))