summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-06 23:34:25 +0400
committerilotterytea <iltsu@alright.party>2025-06-06 23:34:25 +0400
commit2b4eebf2f2711a962f417fceeb54d681ef41a4ce (patch)
treec4be1c2bb171a2c31d386de0ac4b2dde1dcac6e1 /lib
parentaed48748a8b20639c966c5e57d59730eea00c6db (diff)
fix: i should have used $path here
Diffstat (limited to 'lib')
-rw-r--r--lib/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file.php b/lib/file.php
index 4fcb607..d8f740e 100644
--- a/lib/file.php
+++ b/lib/file.php
@@ -11,7 +11,7 @@ function verify_mimetype(string $file_path, string $mimetype): bool
} else if (str_starts_with($mimetype, 'video/') || str_starts_with($mimetype, 'audio/')) {
$output = [];
$exitCode = 0;
- $cmd = 'ffprobe -v error -i "/path/to/video.mp4" 2>&1';
+ $cmd = "ffprobe -v error -i $path 2>&1";
exec($cmd, $output, $exitCode);
return $exitCode === 0;
}