1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Show active lives in the API

This commit is contained in:
Daniel 2022-03-11 10:32:22 -03:00
parent 645d6daafd
commit d4c10e3339

View file

@ -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();