Skip to content

Commit

Permalink
add channel description
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldDominik893 committed May 21, 2024
1 parent 5246e17 commit 8f7d606
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
25 changes: 22 additions & 3 deletions channel/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@
$bannerUrl = $value['authorBanners'][1]['url'] ?? "";
$subcount = number_format($value['subCount']) ?? "";
$joined = $value['joined'] ?? "";
$channelPfpUrl = $value['authorThumbnails'][1]['url'] ?? "";
$channelDescription = $value['description'];
$channelPfpUrl = $value['authorThumbnails'][5]['url'] ?? "";

if($params['q']){
$InvApiUrl = $InvVIServer.'/api/v1/channels/search/'.$params['id'].'?hl='.$langrow.'&q='.$params['q'];
Expand All @@ -175,9 +176,23 @@
$data = json_decode($response);
$value_search = json_decode(json_encode($data), true);
}

?>


<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:title" content="<?php echo $authorc; ?>">
<meta property="og:type" content="website">
<meta name="theme-color" content="#303EE1">
<meta name="keywords" content="libretube, badyt.cf, liberatube, EpicFaucet, two.epicfaucet.gq, yewtu.be, alternative youtube frontend, Liberatube, invidious">
<meta property="og:locale" content="en_GB">
<meta property="og:description" content="<?php echo $channelDescription; ?>">
<meta property="description" content="<?php echo $channelDescription; ?>">
<meta name="og:image" content="<?php echo $channelPfpUrl; ?>"/>

<span><meta property="og:site_name" content="Liberatube">
<link itemprop="name" content="Liberatube"></span></head>

<?php

$pl = file_get_contents($InvVIServer.'/api/v1/channels/'.$params['id'].'/playlists/?hl='.$langrow);
$plitemsint = substr_count($pl,"playlistThumbnail");
Expand Down Expand Up @@ -234,6 +249,10 @@
<a href="/channel/?id='.$params['id'].'&type=videos">'.$translations[$langrow]['videos'].'</a><br>
> <a href="#">'.$translations[$langrow]['playlists'].'</a><br>
</div><br><br>'; }
echo '<div class="epicdiv" style="display: block; width: 100%;"><h4>'.$translations[$langrow]['description'].'</h4>
<p style="margin: 0;">'.$channelDescription.'</p>
</div>';

?>

<br>
Expand Down
9 changes: 8 additions & 1 deletion lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
'add_vid_to_playlist' => 'Add this video to a playlist',
'load_comments' => 'Load comments',
'video' => 'Video',
'description' => 'Description',
),
'pl' => array (
'home' => 'Strona główna',
Expand Down Expand Up @@ -174,6 +175,7 @@
'add_vid_to_playlist' => 'Dodaj to wideo do listy odtwarzania',
'load_comments' => 'Wczytaj komentarze',
'video' => 'Wideo',
'description' => 'Opis',
),
'fr' => array (
'home' => "Accueil",
Expand Down Expand Up @@ -261,6 +263,7 @@
'add_vid_to_playlist' => 'Ajouter cette vidéo à une liste de lecture',
'load_comments' => 'Charger les commentaires',
'video' => 'Vidéo',
'description' => 'Description',
),
'es' => array (
'home' => 'Inicio',
Expand Down Expand Up @@ -348,6 +351,7 @@
'add_vid_to_playlist' => 'Agregar este video a una lista de reproducción',
'load_comments' => 'Cargar comentarios',
'video' => 'Vídeo',
'description' => 'Descripción',
),
'de' => array (
'home' => 'Startseite',
Expand Down Expand Up @@ -435,6 +439,7 @@
'add_vid_to_playlist' => 'Dieses Video zu einer Wiedergabeliste hinzufügen',
'load_comments' => 'Kommentare laden',
'video' => 'Video',
'description' => 'Beschreibung',
),
'fi' => array(
'home' => 'Koti',
Expand Down Expand Up @@ -522,6 +527,7 @@
'add_vid_to_playlist' => 'Lisää tämä video soittolistalle',
'load_comments' => 'Lataa kommentit',
'video' => 'Video',
'description' => 'Kuvaus',
),
'zh-CN' => array(
'home' => '首页',
Expand Down Expand Up @@ -608,6 +614,7 @@
'channel' => '频道',
'add_vid_to_playlist' => '将此视频添加到播放列表',
'load_comments' => '加载评论',
'video' => '视频'
'video' => '视频',
'description' => '描述',
),
);

0 comments on commit 8f7d606

Please sign in to comment.