summaryrefslogtreecommitdiff
path: root/lib/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/file.php')
-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;
}