mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
36fd0bb883
commit
ea39ee8735
1 changed files with 12 additions and 7 deletions
|
@ -435,15 +435,20 @@ class AI extends PluginAbstract
|
||||||
$msg = '';
|
$msg = '';
|
||||||
$isValid = false;
|
$isValid = false;
|
||||||
if ($arrayRegular['isValid'] && $arrayLower['isValid']) {
|
if ($arrayRegular['isValid'] && $arrayLower['isValid']) {
|
||||||
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayLower['paths']['path']);
|
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayRegular['paths']['path']);
|
||||||
if (!$f['isUnlocked']) {
|
if (!$f['isUnlocked']) {
|
||||||
$msg = "The audio is processing";
|
$msg = "The original audio is processing";
|
||||||
}else{
|
}else{
|
||||||
$diff = abs($arrayRegular['durationInSeconds'] - $arrayLower['durationInSeconds']);
|
$f = convertVideoFileWithFFMPEGIsLockedInfo($arrayLower['paths']['path']);
|
||||||
if ($diff <= 2) {
|
if (!$f['isUnlocked']) {
|
||||||
$isValid = true;
|
$msg = "The audio is processing";
|
||||||
} else {
|
}else{
|
||||||
$msg = "durationInSeconds are not the same regular={$arrayRegular['durationInSeconds']} lower={$arrayLower['durationInSeconds']}";
|
$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 {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue