From: Alan Pippin Date: Sun, 3 Oct 2010 03:36:20 +0000 (-0600) Subject: Fixed dailymotion import issues X-Git-Url: http://git.pippins.net/embedvideo/static/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/images/checkmark.gif?a=commitdiff_plain;p=embedvideo%2F.git Fixed dailymotion import issues --- diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 2298698..2ba1adf 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -578,7 +578,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $thumbnail=$dailymotionThumbnailUrl.$item_id; /* Format the description to hold a reference to the embedded video */ - if(preg_match('/<.+? value="(.+?)" class=".+?" id="video_player_embed_code_text" \/>/', $contents, $matches)) { + if(preg_match('/embed code:.+? value="(.+?)" /', $contents, $matches)) { $description=$matches[1]; $description=preg_replace("/"/","'",$description); $description=preg_replace("/</","<",$description);