+
+ /* If extra params were given, handle them here */
+ if(strcmp($extra_params,"")) {
+ /* Handle the HD format information */
+ if(preg_match("/fmt=(\d+)/",$extra_params,$matches)) {
+ $extra_params="&ap=%2526fmt%3D".$matches[1];
+ }
+ }
+
+ if(!strcmp($debugOutput,"true")) {
+ print "<h2>URL Parsing Results</h2>";
+ print "video_id: $video_id<br>";
+ print "extra_embed_params: $extra_params<br>";
+ print "<hr>";
+ }