+ if not video_data:
+ # video info not in first request, do a secondary request using tahoe player specific url
+ tahoe_data = self._download_webpage(
+ self._VIDEO_PAGE_TAHOE_TEMPLATE % video_id, video_id,
+ data=urlencode_postdata({
+ '__user': 0,
+ '__a': 1,
+ '__pc': self._search_regex(r'"pkg_cohort":"(.*?)"', webpage, 'pkg cohort', default='PHASED:DEFAULT'),
+ '__rev': self._search_regex(r'"client_revision":(\d+),', webpage, 'client revision', default=3944515),
+ }),
+ headers={
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ })
+ tahoe_js_data = self._parse_json(self._search_regex(
+ r'for \(;;\);(.+)', tahoe_data,
+ 'tahoe js data', default='{}'), video_id, fatal=False)
+ video_data = extract_video_data(tahoe_js_data.get('jsmods', {}).get('instances', []))
+