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