X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=ItemAddEmbedVideo.inc;h=820fe6f5f2d0e0ac393698803ee5ac0388c5b92e;hb=66480d152434ae78c77e1da6ea7af66762b2f440;hp=544c5225cd970821b8ff23a6379f983313e97ced;hpb=7ec319c1b7a2ab44287ac3d6ecbd6f2e773533c9;p=embedvideo%2F.git diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 544c522..820fe6f 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -214,11 +214,15 @@ class ItemAddEmbedVideo extends ItemAddPlugin { /* 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

Youtube URL Parsing Results

";