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

Update autoplay video poster and thumbnail URLs to use new video source retrieval method

This commit is contained in:
Daniel Neto 2025-07-03 20:29:49 -03:00
parent 30258e63e2
commit a48157e0b7

View file

@ -280,10 +280,11 @@ if (!empty($evideo)) {
$modeYouTubeTimeLog['Code part 3'] = microtime(true) - $modeYouTubeTime; $modeYouTubeTimeLog['Code part 3'] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true); $modeYouTubeTime = microtime(true);
if (!empty($autoPlayVideo) && !empty($autoPlayVideo['filename'])) { if (!empty($autoPlayVideo) && !empty($autoPlayVideo['filename'])) {
$s = getVideosURL_V2($autoPlayVideo['filename']);
$autoPlaySources = getSources($autoPlayVideo['filename'], true); $autoPlaySources = getSources($autoPlayVideo['filename'], true);
$autoPlayURL = $autoPlayVideo['url']; $autoPlayURL = $autoPlayVideo['url'];
$autoPlayPoster = "{$global['webSiteRootURL']}videos/{$autoPlayVideo['filename']}.jpg"; $autoPlayPoster = $s['jpg_thumbsV2']['jpg'];
$autoPlayThumbsSprit = "{$global['webSiteRootURL']}videos/{$autoPlayVideo['filename']}_thumbsSprit.jpg"; $autoPlayThumbsSprit = $s['jpg_thumbsSprit']['url'];
} else { } else {
$autoPlaySources = []; $autoPlaySources = [];
$autoPlayURL = ''; $autoPlayURL = '';