projects
/
embedvideo
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4c85a8
)
Fixed a few bugs I introduced this morning when converting hard coded text to variables.
author
Alan Jack Pippin
<ajp@pippin.(none)>
Mon, 11 Jun 2007 23:43:23 +0000
(17:43 -0600)
committer
Alan J. Pippin
<ajp@pippins.net>
Mon, 11 Jun 2007 23:43:23 +0000
(17:43 -0600)
ItemAddEmbedVideo.inc
patch
|
blob
|
history
diff --git
a/ItemAddEmbedVideo.inc
b/ItemAddEmbedVideo.inc
index 418bbcbdb048ca8cc56adcc5e8aaf627335026d5..eb15456ed6b424d1af018305f614d35a0195962e 100644
(file)
--- a/
ItemAddEmbedVideo.inc
+++ b/
ItemAddEmbedVideo.inc
@@
-110,7
+110,7
@@
class ItemAddEmbedVideo extends ItemAddPlugin {
$feed.= "&dev_id=$dev_id&video_id=$video_id";
/* Get the youtube xml feed as a string data source */
$feed.= "&dev_id=$dev_id&video_id=$video_id";
/* Get the youtube xml feed as a string data source */
- $xml =
_getFeed($feed);
+ $xml =
$this->_getFeed($feed);
if($debugOutput) {
print "$xml";
if($debugOutput) {
print "$xml";
@@
-162,7
+162,8
@@
class ItemAddEmbedVideo extends ItemAddPlugin {
}
/* Grab the contents of the webpage used to display the video on video.google.com */
}
/* Grab the contents of the webpage used to display the video on video.google.com */
- $contents=file_get_contents($url);
+ //$contents=file_get_contents($url);
+ $contents = $this->_getFeed($url);
/* Extract the summary from the webpage contents */
preg_match('/<meta content="(.+?)\. \w+ \d+, \d+.*" name="description">/i',
/* Extract the summary from the webpage contents */
preg_match('/<meta content="(.+?)\. \w+ \d+, \d+.*" name="description">/i',
@@
-184,7
+185,7
@@
class ItemAddEmbedVideo extends ItemAddPlugin {
$description = '<embed FlashVars="autoPlay=true" ';
$description.= 'style="width:'.$width.'px; height:'.$height.'px;" id="VideoPlayback" ';
$description.= 'type="application/x-shockwave-flash" ';
$description = '<embed FlashVars="autoPlay=true" ';
$description.= 'style="width:'.$width.'px; height:'.$height.'px;" id="VideoPlayback" ';
$description.= 'type="application/x-shockwave-flash" ';
- $description.= 'src="'.$googlePlayer.'
"
?docId='.$doc_id.'"> ';
+ $description.= 'src="'.$googlePlayer.'?docId='.$doc_id.'"> ';
$description.= '</embed>';
$description.= "<br>$summary";
$description.= '</embed>';
$description.= "<br>$summary";