+ sub_path = player_config.get('subtitles')
+ error = None
+ if not links:
+ links_url = player_config.get('linksurl') or options['videoUrl']
+ links_data = self._download_json(urljoin(
+ self._BASE_URL, links_url), video_id)
+ links = links_data.get('links') or {}
+ metas = metas or links_data.get('meta') or {}
+ sub_path = sub_path or links_data.get('subtitles')
+ error = links_data.get('error')
+ title = metas.get('title') or video_info['title']