mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +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']);
|
||||
$autoPlaySources = getSources($autoPlayVideo['filename'], true);
|
||||
$autoPlayURL = $autoPlayVideo['url'];
|
||||
$autoPlayPoster = $s['jpg_thumbsV2']['jpg'];
|
||||
$autoPlayThumbsSprit = $s['jpg_thumbsSprit']['url'];
|
||||
$autoPlayPoster = empty($s['jpg_thumbsV2'])? (empty($s['jpg'])? '' : $s['jpg']['url']) : $s['jpg_thumbsV2']['url'];
|
||||
$autoPlayThumbsSprit = empty($s['jpg_thumbsSprit'])? '' : $s['jpg_thumbsSprit']['url'];
|
||||
} else {
|
||||
$autoPlaySources = [];
|
||||
$autoPlayURL = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue