X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=ItemAddEmbedVideo.inc;h=bfb8daab44028f339ca27a5d45fcf621bc1b8829;hb=f7553a85847b1a40cf9d348ebbc2d27956fa8ac1;hp=d598ee2c1d09dd501eff2dd03430aa8a0eaa4f07;hpb=46e1538c4e6375a1cc5b5a84c339777df1dc69a0;p=embedvideo%2F.git diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index d598ee2..bfb8daa 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -331,7 +331,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { } /* Extract the thumbnail URL from the webpage contents */ - preg_match('/thumbnail: \'(http:\/\/.*?\/ThumbnailServer2.+?)\'/i', + preg_match('/\'(http:\/\/.*?\/ThumbnailServer2.+?)\'/i', $contents, $matches); $thumbnail=$matches[1]; $thumbnail=preg_replace("/\\\\x26/","&",$thumbnail); @@ -798,18 +798,19 @@ class ItemAddEmbedVideo extends ItemAddPlugin { } /* Format the description to hold a reference to the embedded video */ - $description = ''; $description.= ''; - $description.= ''; - $description.= ''; - $description.= ''; - + $description.= ''; + $description.= ''; + $description.= ''; + $description.= ''; + /* ********************************** * Embed a remote .swf file