/* Handle the high quality format information */
if(preg_match("/fmt=(\d+)/",$extra_params,$matches)) {
$extra_params="&ap=%2526fmt%3D".$matches[1];
+ if(!strcmp($matches[1],"22")) {
+ //$youtubeWidth=1280;
+ //$youtubeHeight=720;
+ }
}
}
/* Youtube api feed */
- $feed = $youtubeApiUrl."videos/$video_id";
+ $feed = $youtubeApiUrl."videos/".urlencode($video_id);
if(!strcmp($debugOutput,"true")) {
print "\n<h2>Youtube URL Parsing Results</h2>";