Added some new images. Fixed google video description matching.
authorAlan Jack Pippin <ajp@pippin.(none)>
Sat, 13 Oct 2007 02:16:17 +0000 (20:16 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Sat, 13 Oct 2007 02:16:17 +0000 (20:16 -0600)
ItemAddEmbedVideo.inc
images/G2video.jpg [deleted file]
images/G2video_thumbnail.jpg [new file with mode: 0644]
images/G2video_watermark.gif [new file with mode: 0755]
module.inc

index 940a4ea1e5256c4e7d22852fa515969f1614b470..3a1fa7967e7cda4195a2e7fb54057d346917c8a5 100644 (file)
@@ -257,7 +257,8 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
               }
 
               /* Extract the summary from the webpage contents */
               }
 
               /* 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];
 
                          $contents, $matches);
               $summary=$matches[1];
 
diff --git a/images/G2video.jpg b/images/G2video.jpg
deleted file mode 100644 (file)
index 4cd04d5..0000000
Binary files a/images/G2video.jpg and /dev/null differ
diff --git a/images/G2video_thumbnail.jpg b/images/G2video_thumbnail.jpg
new file mode 100644 (file)
index 0000000..4cd04d5
Binary files /dev/null and b/images/G2video_thumbnail.jpg differ
diff --git a/images/G2video_watermark.gif b/images/G2video_watermark.gif
new file mode 100755 (executable)
index 0000000..8ec7a76
Binary files /dev/null and b/images/G2video_watermark.gif differ
index 0f6e5d2d0c58d078df974cfbd961fa0098baebe7..0cc2e4b1bbb29ad5b9c0dd4faca613f01dad9228 100644 (file)
@@ -33,7 +33,7 @@ class EmbedVideoModule extends GalleryModule {
        $this->setId('embedvideo');
        $this->setName($gallery->i18n('Embed Video'));
        $this->setDescription($gallery->i18n('Add embedded videos from the web'));
        $this->setId('embedvideo');
        $this->setName($gallery->i18n('Embed Video'));
        $this->setDescription($gallery->i18n('Add embedded videos from the web'));
-       $this->setVersion('1.0.4');
+       $this->setVersion('1.0.5');
        $this->setGroup('import', $gallery->i18n('Import'));
        $this->setCallbacks('getSiteAdminViews');
        $this->setRequiredCoreApi(array(7, 4));
        $this->setGroup('import', $gallery->i18n('Import'));
        $this->setCallbacks('getSiteAdminViews');
        $this->setRequiredCoreApi(array(7, 4));