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 Neto 2024-03-21 20:45:57 -03:00
parent ea39ee8735
commit e5ccca2d1b
2 changed files with 3 additions and 1 deletions

View file

@ -233,7 +233,7 @@ function convertVideoFileWithFFMPEGIsLockedInfo($toFileLocation){
'isOld'=>$isOld ,
'file_exists'=>file_exists($localFileLock),
'localFileLock'=>$localFileLock,
'isUnlocked'=>$isOld || !$file_exists,
'isUnlocked'=> $isOld || !$file_exists,
);
}
function convertVideoFileWithFFMPEG($fromFileLocation, $toFileLocation, $logFile = '', $try = 0)

View file

@ -436,10 +436,12 @@ class AI extends PluginAbstract
$isValid = false;
if ($arrayRegular['isValid'] && $arrayLower['isValid']) {
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayRegular['paths']['path']);
_error_log("convertVideoFileWithFFMPEGIsLockedInfo({$arrayRegular['paths']['path']}) arrayRegular ".json_encode($f));
if (!$f['isUnlocked']) {
$msg = "The original audio is processing";
}else{
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayLower['paths']['path']);
_error_log("convertVideoFileWithFFMPEGIsLockedInfo({$arrayLower['paths']['path']}) arrayLower ".json_encode($f));
if (!$f['isUnlocked']) {
$msg = "The audio is processing";
}else{