Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Sep 20, 2024
1 parent 768cece commit dc708e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/functionsFFMPEG.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit dc708e4

Please sign in to comment.