diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua index 84c712e412..55cf817950 100644 --- a/TOOLS/lua/autocrop.lua +++ b/TOOLS/lua/autocrop.lua @@ -26,7 +26,7 @@ -- to mpv's arguments. This may be desirable to allow cropdetect more -- time to collect data. -script_name=string.gsub(mp.get_script_name(),"lua/","") +script_name=mp.get_script_name() cropdetect_label=string.format("%s-cropdetect",script_name) crop_label=string.format("%s-crop",script_name) diff --git a/TOOLS/lua/drc-control.lua b/TOOLS/lua/drc-control.lua index f0a6ff2721..17e9f370f9 100644 --- a/TOOLS/lua/drc-control.lua +++ b/TOOLS/lua/drc-control.lua @@ -17,7 +17,7 @@ -- OSD feedback of the current filter state is displayed on pressing -- each bound key. -script_name=mp.get_script_name():gsub("lua/","",1) +script_name=mp.get_script_name() function print_state(params) if params then