mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
This commit is contained in:
parent
8468ec06d3
commit
af4585e40c
5 changed files with 23 additions and 1 deletions
|
@ -274,6 +274,11 @@ class API extends PluginAbstract {
|
|||
$rows[$key]['pageUrl'] = Video::getLink($rows[$key]['id'], $rows[$key]['clean_title'], false);
|
||||
$rows[$key]['embedUrl'] = Video::getLink($rows[$key]['id'], $rows[$key]['clean_title'], true);
|
||||
$rows[$key]['UserPhoto'] = User::getPhoto($rows[$key]['users_id']);
|
||||
$rows[$key]['isSubscribed'] = false;
|
||||
if(User::isLogged()){
|
||||
require_once $global['systemRootPath'] . 'objects/subscribe.php';
|
||||
$rows[$key]['isSubscribed'] = Subscribe::isSubscribed($rows[$key]['users_id']);
|
||||
}
|
||||
|
||||
if ($SubtitleSwitcher) {
|
||||
$rows[$key]['subtitles'] = getVTTTracks($value['filename'], true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue