From c715f7d9dc80bca025984c9150c02ccc4bbdce80 Mon Sep 17 00:00:00 2001
From: Alan Jack Pippin <ajp@pippin.(none)>
Date: Fri, 12 Oct 2007 20:16:17 -0600
Subject: [PATCH] Added some new images. Fixed google video description
 matching.

---
 ItemAddEmbedVideo.inc                         |   3 ++-
 images/{G2video.jpg => G2video_thumbnail.jpg} | Bin
 images/G2video_watermark.gif                  | Bin 0 -> 305 bytes
 module.inc                                    |   2 +-
 4 files changed, 3 insertions(+), 2 deletions(-)
 rename images/{G2video.jpg => G2video_thumbnail.jpg} (100%)
 create mode 100755 images/G2video_watermark.gif

diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc
index 940a4ea..3a1fa79 100644
--- a/ItemAddEmbedVideo.inc
+++ b/ItemAddEmbedVideo.inc
@@ -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];
 
diff --git a/images/G2video.jpg b/images/G2video_thumbnail.jpg
similarity index 100%
rename from images/G2video.jpg
rename to images/G2video_thumbnail.jpg
diff --git a/images/G2video_watermark.gif b/images/G2video_watermark.gif
new file mode 100755
index 0000000000000000000000000000000000000000..8ec7a76f05109a771391a32dd9b6def4524786e7
GIT binary patch
literal 305
zcmV-10nYwMNk%w1VU_@v0FeR!0s;d6|NsC0{{R30A^8LW00062EC2ui0G0rj00092
zl#i*)?GK}zwAzca-n{z{hT=$;=82~2%C_zc$MQ_q_KoNI&iDQg3<`(DqVb4KDwoWr
z^9hYgr_`$Tip^@b+^+Wv4vWX+viXcotJmzd`wfrF=k&V$j?e4&{J#GW7$`VMSZH{N
zn5gIxuqYAG==cB`Dak-tX_<hTscFF3sR<e?IZC={dYYK3ddS*Z_zF8HI~!PQ`-hv`
zw+o<%3-G%tD~$STe4LuBJj&e6`3y}dJsnUzjSa2c%&qKw42~-9IP7_jp02*m-tPVm
zA1^;oUvGbppRd2q-|znqFrdJJ1PdBGh%lkTg$x@yd<Ze3#EBFuTD*ucqsBo31poj$
DYLA!9

literal 0
HcmV?d00001

diff --git a/module.inc b/module.inc
index 0f6e5d2..0cc2e4b 100644
--- a/module.inc
+++ b/module.inc
@@ -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->setVersion('1.0.4');
+	$this->setVersion('1.0.5');
 	$this->setGroup('import', $gallery->i18n('Import'));
 	$this->setCallbacks('getSiteAdminViews');
 	$this->setRequiredCoreApi(array(7, 4));
-- 
2.34.1