- 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_cn = self._download_webpage(
+ 'http://91porn.com/getfile.php?' + url_params, video_id,
+ 'Downloading real video url')
+ video_url = compat_urllib_parse_unquote(self._search_regex(
+ r'file=([^&]+)&', info_cn, 'url'))
+
+ duration = parse_duration(self._search_regex(
+ r'时长:\s*</span>\s*(\d+:\d+)', webpage, 'duration', fatal=False))