mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
c1104214d4
commit
1e63b3be72
4 changed files with 6 additions and 25 deletions
|
@ -342,7 +342,7 @@ class API extends PluginAbstract
|
|||
if (!empty($value['fullTotal_videos'])) {
|
||||
$video = Category::getLatestVideoFromCategory($value['id'], true, true);
|
||||
$images = Video::getImageFromID($video['id']);
|
||||
$image = $images->poster;
|
||||
$image = $images->default['url'];
|
||||
} elseif (!empty($value['fullTotal_lives'])) {
|
||||
$live = Category::getLatestLiveFromCategory($value['id'], true, true);
|
||||
$image = Live::getImage($live['users_id'], $live['live_servers_id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue