From dfd8a5ff06efcb1273615f7f45d67e379e07cbb5 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Sat, 8 Aug 2015 01:52:44 +0100 Subject: TOOLS/lua/autoload: don't run if playlist is loaded --- TOOLS/lua/autoload.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'TOOLS/lua') 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 -- cgit v1.2.3