diff --git a/webif/html/browse/ffmpeg.jim b/webif/html/browse/ffmpeg.jim
index e8f6edc..9965b49 100755
--- a/webif/html/browse/ffmpeg.jim
+++ b/webif/html/browse/ffmpeg.jim
@@ -6,6 +6,6 @@ source /mod/webif/lib/setup
httpheader
set file [cgi_get file]
-if {[string compare -nocase [file extension $x] ".hmt"]} {
+if {[string compare -nocase [file extension $file] ".hmt"]} {
puts [exec /mod/bin/ffprobe -hide_banner $file]
}