From bbd1c50b380072fd154edbe80b0933967239ae8f Mon Sep 17 00:00:00 2001 From: prpr Date: Sat, 7 Oct 2023 02:00:41 +0100 Subject: [PATCH] Prevent trying to Play a .hmt file --- webif/html/browse/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webif/html/browse/script.js b/webif/html/browse/script.js index d7bd0f6..a9386e6 100755 --- a/webif/html/browse/script.js +++ b/webif/html/browse/script.js @@ -826,6 +826,11 @@ function doplay(it) var fmts = ""; var vc = "" var ff = $('#ffmpeg')[0]; + + if (file.match(/\.hmt$/i).length) { + $(it).dialog('close'); + return; + } if (ff) { /* extract duration, container and video codec from ffmpeg output */