mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Show active lives in the API
This commit is contained in:
parent
645d6daafd
commit
d4c10e3339
1 changed files with 4 additions and 0 deletions
|
@ -645,6 +645,10 @@ class API extends PluginAbstract {
|
|||
$p = AVideoPlugin::loadPlugin("Live");
|
||||
|
||||
$obj->user = User::getUserFromID($user->getBdId());
|
||||
|
||||
unset($obj->externalOptions);
|
||||
unset($obj->extra_info);
|
||||
|
||||
$obj->livestream = LiveTransmition::getFromDbByUser($user->getBdId());
|
||||
$obj->livestream["live_servers_id"] = Live::getCurrentLiveServersId();
|
||||
$obj->livestream["server"] = $p->getServer($obj->livestream["live_servers_id"]) . "?p=" . $user->getPassword();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue