summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorroot2014-02-26 16:29:15 +0100
committerroot2014-02-26 16:29:15 +0100
commit17dc93eab267a25e0620576f1ce62bf8ffc417ab (patch)
tree833d7549e7f1abcb62cfac5dac345c8ee9c6d9ee /www
parente2dfb7fd3f5da5fac7788ed8bcb146b29d87a8c2 (diff)
downloadrandom-17dc93eab267a25e0620576f1ce62bf8ffc417ab.tar.gz
.
Diffstat (limited to 'www')
-rw-r--r--www/youtube.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/www/youtube.php b/www/youtube.php
index 0843299..a035fe0 100644
--- a/www/youtube.php
+++ b/www/youtube.php
@@ -1,11 +1,9 @@
<?php
-require("zend_init.php");
+require("zend_init.php"); //generates the $yt object, API version 2
function getAndPrintVideoFeed($location, $yt)
{
-//$yt = new Zend_Gdata_YouTube();
-//$yt->setMajorProtocolVersion(2);
$videoFeed = $yt->getVideoFeed($location);
printVideoFeed($videoFeed);
@@ -79,7 +77,8 @@ function get_video(){
return $string;
}
-getAndPrintVideoFeed($location = Zend_Gdata_YouTube::VIDEO_URI, $yt);
+$location = Zend_Gdata_YouTube::VIDEO_URI;
+getAndPrintVideoFeed($location, $yt);
$searchstring = get_video();