Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Aug 30, 2024
1 parent 1e9773f commit fb94bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -7247,7 +7247,7 @@ static function isVideoFileCorrupted($videos_id)
$command = removeUserAgentIfNotURL($command);
exec($command);

if (filesize($logFile) > 0) {
if (filesize($logFile) > 300) {
file_put_contents($logFile, PHP_EOL . PHP_EOL . $command);
$result['isValid'] = false;
$result['msg'] = 'Video file is corrupted. See log for details. ' . ' filesize=' . (filesize($logFile)) . ' ' . $logFile;
Expand Down

0 comments on commit fb94bd7

Please sign in to comment.