TOOLS/lua/autoload: don't run if playlist is loaded

This commit is contained in:
Ricardo Constantino 2015-08-08 01:52:44 +01:00 committed by wm4
parent 91b9dcf800
commit dfd8a5ff06
1 changed files with 4 additions and 0 deletions

View File

@ -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