1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
DanieL 2023-02-16 10:58:56 -03:00
parent e550893489
commit ffc6ae6af9

View file

@ -166,10 +166,13 @@ $obj->gifDest_deleteInvalidImage = deleteInvalidImage($obj->gifDest);
$obj->webpDest_deleteInvalidImage = deleteInvalidImage($obj->webpDest);
if (!empty($_REQUEST['duration'])) {
_error_log("ReceiveImage: duration NOT empty {$_REQUEST['duration']}");
$duration = $video->getDuration();
if (empty($duration) || $duration === 'EE:EE:EE') {
_error_log("ReceiveImage: duration Line ".__LINE__);
$video->setDuration($_REQUEST['duration']);
}else if($_REQUEST['duration']!=='EE:EE:EE'){
_error_log("ReceiveImage: duration Line ".__LINE__);
$video->setDuration($_REQUEST['duration']);
}
}else{