aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-11-13 17:41:11 -0500
committerJesús <heckyel@hyperbola.info>2018-11-13 17:41:11 -0500
commite620918e931367af4ea9bc937dd0227db820dc71 (patch)
treeac670c53a3597dfe96ffe7973e31fd1b01ab632d
parenta0be26620b90d9e32c936f6d94a44c06c264acbe (diff)
downloadytlibre-e620918e931367af4ea9bc937dd0227db820dc71.tar.lz
ytlibre-e620918e931367af4ea9bc937dd0227db820dc71.tar.xz
ytlibre-e620918e931367af4ea9bc937dd0227db820dc71.zip
Add videChannel to variable
-rw-r--r--index.php1
-rw-r--r--tools/processor.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index b8ae22e..2a1826f 100644
--- a/index.php
+++ b/index.php
@@ -25,6 +25,7 @@ if (empty($_GET['link'])){
$video_decode->assign("videoTitle", $videoTitle);
$video_decode->assign("videoThumbURL", $videoThumbURL);
$video_decode->assign("videoAuthor", $videoAuthor);
+ $video_decode->assign("videoChannel", $videoChannel);
$video_decode->assign("videoDuration", $videoDuration);
$video_decode->assign("librethumb", $librethumb);
diff --git a/tools/processor.php b/tools/processor.php
index 58a8bc7..80461ba 100644
--- a/tools/processor.php
+++ b/tools/processor.php
@@ -30,6 +30,7 @@ $videoAuthor = $video_info->author;
$videoDurationSecs = $video_info->length_seconds;
$videoDuration = secToDuration($videoDurationSecs);
//$videoViews = $video_info->view_count;
+$videoChannel = $video_info->ucid;
//change hqdefault.jpg to default.jpg for downgrading the thumbnail quality
$videoThumbURL = "https://i1.ytimg.com/vi/{$my_id}/hqdefault.jpg";