mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Fix autoplay poster and thumbnail URL retrieval logic in modeYoutube.php
This commit is contained in:
parent
a48157e0b7
commit
9cf18bde1b
1 changed files with 2 additions and 2 deletions
|
@ -283,8 +283,8 @@ if (!empty($evideo)) {
|
||||||
$s = getVideosURL_V2($autoPlayVideo['filename']);
|
$s = getVideosURL_V2($autoPlayVideo['filename']);
|
||||||
$autoPlaySources = getSources($autoPlayVideo['filename'], true);
|
$autoPlaySources = getSources($autoPlayVideo['filename'], true);
|
||||||
$autoPlayURL = $autoPlayVideo['url'];
|
$autoPlayURL = $autoPlayVideo['url'];
|
||||||
$autoPlayPoster = $s['jpg_thumbsV2']['jpg'];
|
$autoPlayPoster = empty($s['jpg_thumbsV2'])? (empty($s['jpg'])? '' : $s['jpg']['url']) : $s['jpg_thumbsV2']['url'];
|
||||||
$autoPlayThumbsSprit = $s['jpg_thumbsSprit']['url'];
|
$autoPlayThumbsSprit = empty($s['jpg_thumbsSprit'])? '' : $s['jpg_thumbsSprit']['url'];
|
||||||
} else {
|
} else {
|
||||||
$autoPlaySources = [];
|
$autoPlaySources = [];
|
||||||
$autoPlayURL = '';
|
$autoPlayURL = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue