summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua/autocrop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/lua/autocrop.lua')
-rw-r--r--TOOLS/lua/autocrop.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua
index 2523dd99de..bf598e8b05 100644
--- a/TOOLS/lua/autocrop.lua
+++ b/TOOLS/lua/autocrop.lua
@@ -27,9 +27,9 @@
-- time to collect data.
require "mp.msg"
-script_name=mp.get_script_name()
-cropdetect_label=string.format("%s-cropdetect",script_name)
-crop_label=string.format("%s-crop",script_name)
+script_name = mp.get_script_name()
+cropdetect_label = string.format("%s-cropdetect", script_name)
+crop_label = string.format("%s-crop", script_name)
-- number of seconds to gather cropdetect data
detect_seconds = tonumber(mp.get_opt(string.format("%s.detect_seconds", script_name)))
@@ -110,4 +110,4 @@ function do_crop()
timer=nil
end
-mp.add_key_binding("C","auto_crop",autocrop_start)
+mp.add_key_binding("C", "auto_crop", autocrop_start)