summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/lua')
-rw-r--r--TOOLS/lua/autoload.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua
index 0730397e75..ffe6ddba15 100644
--- a/TOOLS/lua/autoload.lua
+++ b/TOOLS/lua/autoload.lua
@@ -47,6 +47,10 @@ function find_and_add_entries()
if #dir == 0 then
return
end
+ local isplaylist = mp.get_property("playlist-count")
+ if #isplaylist > 1 then
+ return
+ end
local files = mputils.readdir(dir, "files")
if files == nil then