From c715f7d9dc80bca025984c9150c02ccc4bbdce80 Mon Sep 17 00:00:00 2001 From: Alan Jack Pippin 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('//i', + //print "contents: $contents
"; + preg_match('//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_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