Added some new images. Fixed google video description matching.
[embedvideo/.git] / ItemAddEmbedVideo.inc
index 940a4ea1e5256c4e7d22852fa515969f1614b470..3a1fa7967e7cda4195a2e7fb54057d346917c8a5 100644 (file)
@@ -257,7 +257,8 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
               }
 
               /* Extract the summary from the webpage contents */
-              preg_match('/<meta content="(.+?)\. \w+ \d+, \d+.*" name="description">/i',
+              //print "contents: $contents <br>";
+              preg_match('/<meta name="description" content="(.+?)\. \w+ \d+, \d+.*">/i',
                          $contents, $matches);
               $summary=$matches[1];