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
c690256220
commit
80ab337e71
1 changed files with 2 additions and 0 deletions
|
@ -658,6 +658,7 @@ class API extends PluginAbstract {
|
|||
|
||||
foreach ($rows as $value) {
|
||||
$value['live_transmitions_history_id'] = $value['id'];
|
||||
$value['joinURL'] = LiveTransmitionHistory::getLinkToLive($value['id']);
|
||||
$value['isPrivate'] = LiveTransmitionHistory::isPrivate($value['id']);
|
||||
$value['isPasswordProtected'] = LiveTransmitionHistory::isPasswordProtected($value['id']);
|
||||
$obj->livestream["activeLives"][] = $value;
|
||||
|
@ -667,6 +668,7 @@ class API extends PluginAbstract {
|
|||
|
||||
foreach ($rows as $value) {
|
||||
$value['live_transmitions_history_id'] = $value['id'];
|
||||
$value['joinURL'] = LiveTransmitionHistory::getLinkToLive($value['id']);
|
||||
$obj->livestream["latestLives"][] = $value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue