diff --git a/objects/functionsFFMPEG.php b/objects/functionsFFMPEG.php index ae41528b6166..89a303d04cfa 100644 --- a/objects/functionsFFMPEG.php +++ b/objects/functionsFFMPEG.php @@ -119,7 +119,7 @@ function cleanupDownloadsDirectory($resolution = 720) // Check if it's a file and does not match the resolution pattern (e.g., '480_.mp4') $pattern = '/' . $resolution . '_\.mp4$/'; - if (is_file($filePath) && (preg_match($pattern $entry) || empty($fsize))) { + if (is_file($filePath) && (preg_match($pattern, $entry) || empty($fsize))) { // Attempt to delete the file if (unlink($filePath)) { _error_log("cleanupDownloadsDirectory: Deleted file: {$filePath}");