mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Update
This commit is contained in:
parent
c3bae1d66e
commit
b2bab2c378
1 changed files with 4 additions and 4 deletions
|
@ -347,15 +347,15 @@ function getOpenGraphLive()
|
|||
{
|
||||
global $global, $config, $advancedCustom;
|
||||
$isLive = isLive();
|
||||
$liveT = new LiveTransmition($isLive['liveLink']);
|
||||
$users_id = $liveT->getUsers_id();
|
||||
$liveT = LiveTransmition::getFromKey($isLive['cleanKey']);
|
||||
$users_id = $liveT['users_id'];
|
||||
$poster = Live::getPosterImage($users_id, $isLive['live_servers_id'], $isLive['live_schedule']);
|
||||
$liveStreamObject = new LiveStreamObject($isLive['cleanKey'], $isLive['live_servers_id'], $isLive['live_index'], 0);
|
||||
echo PHP_EOL . "<!-- OpenGraph Live users_id={$users_id} ".json_encode($isLive)." -->" . PHP_EOL;
|
||||
$videoType = '';
|
||||
$modifiedDate = '';
|
||||
$createdDate = '';
|
||||
$title = $liveT->getTitle();
|
||||
$title = $liveT['title'];
|
||||
if(empty($title)){
|
||||
Live::getTitleFromUsers_Id($users_id);
|
||||
}
|
||||
|
@ -364,7 +364,7 @@ function getOpenGraphLive()
|
|||
echo PHP_EOL . "<!-- OpenGraph title is empty -->" . PHP_EOL;
|
||||
}
|
||||
|
||||
$description = $liveT->getDescription();
|
||||
$description = $liveT['description'];
|
||||
$duration_in_seconds = 0;
|
||||
$sourceFileURL = $liveStreamObject->getM3U8(true);
|
||||
$pageURL = $liveStreamObject->getURL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue