mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update autoplay video poster and thumbnail URLs to use new video source retrieval method
This commit is contained in:
parent
30258e63e2
commit
a48157e0b7
1 changed files with 3 additions and 2 deletions
|
@ -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 = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue