if (is_null($this->fullInfo)) {
preg_match("/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/i", $this->url, $matches);
$videoId = $matches[7];
$clearContent = file_get_contents("https://www.youtube.com/watch?v=$videoId");
preg_match('/ytplayer.config = (\{.+});ytplayer/', $clearContent, $mathes);
$configData = json_decode($mathes[1], true);
$streamList = explode(',', $configData['args']['url_encoded_fmt_stream_map']);
$configData['args']['url_encoded_fmt_stream_map'] = array();
foreach ($streamList AS $stream) {
parse_str($stream, $res);
$configData['args']['url_encoded_fmt_stream_map'][] = $res;
}
$streamList = explode(',', $configData['args']['adaptive_fmts']);
$configData['args']['adaptive_fmts'] = array();
foreach ($streamList AS $stream) {
parse_str($stream, $res);
$configData['args']['adaptive_fmts'][] = $res;
}
;