From: Alan Pippin <apippin@pippins.net>
Date: Sun, 3 Oct 2010 03:36:20 +0000 (-0600)
Subject: Fixed dailymotion import issues
X-Git-Url: http://git.pippins.net/%27%20.%20%24this-%3Ephpgw_js_url%20.%20%27/jscalendar/calendar-win2k-cold-1.css?a=commitdiff_plain;h=3fb911a7d807b2abdf42af143e40f45fa4786c30;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("/&quot;/","'",$description);
 		 $description=preg_replace("/&lt;/","<",$description);