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:43:30 -03:00
parent 36fd0bb883
commit ea39ee8735

View file

@ -435,15 +435,20 @@ class AI extends PluginAbstract
$msg = '';
$isValid = false;
if ($arrayRegular['isValid'] && $arrayLower['isValid']) {
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayLower['paths']['path']);
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayRegular['paths']['path']);
if (!$f['isUnlocked']) {
$msg = "The audio is processing";
$msg = "The original audio is processing";
}else{
$diff = abs($arrayRegular['durationInSeconds'] - $arrayLower['durationInSeconds']);
if ($diff <= 2) {
$isValid = true;
} else {
$msg = "durationInSeconds are not the same regular={$arrayRegular['durationInSeconds']} lower={$arrayLower['durationInSeconds']}";
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayLower['paths']['path']);
if (!$f['isUnlocked']) {
$msg = "The audio is processing";
}else{
$diff = abs($arrayRegular['durationInSeconds'] - $arrayLower['durationInSeconds']);
if ($diff <= 2) {
$isValid = true;
} else {
$msg = "durationInSeconds are not the same regular={$arrayRegular['durationInSeconds']} lower={$arrayLower['durationInSeconds']}";
}
}
}
} else {