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 21:08:50 -03:00
parent 0a370ffdc0
commit 71f3273aee

View file

@ -389,7 +389,7 @@ class AI extends PluginAbstract
$videoDuration = $video->getDuration_in_seconds(); $videoDuration = $video->getDuration_in_seconds();
$diff = abs($videoDuration - $durationInSeconds); $diff = abs($videoDuration - $durationInSeconds);
$tenPercentOfVideoDuration = $videoDuration * 0.1; // 10% of $videoDuration $tenPercentOfVideoDuration = $videoDuration * 0.1; // 10% of $videoDuration
if ($diff < $tenPercentOfVideoDuration) { if ($diff > $tenPercentOfVideoDuration) {
$f = convertVideoFileWithFFMPEGIsLockedInfo($paths['path']); $f = convertVideoFileWithFFMPEGIsLockedInfo($paths['path']);
if ($f['isUnlocked']) { if ($f['isUnlocked']) {