TOOLS/lua/autoload: don't run if playlist is loaded
This commit is contained in:
1 parent
91b9dcf800
commit
dfd8a5ff06
1 file changed
+4
@@ -47,6 +47,10 @@ function find_and_add_entries()
|
|||||||
if #dir == 0 then
|
if #dir == 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
local isplaylist = mp.get_property("playlist-count")
|
||||||
|
if #isplaylist > 1 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local files = mputils.readdir(dir, "files")
|
local files = mputils.readdir(dir, "files")
|
||||||
if files == nil then
|
if files == nil then
|
||||||
|
|||||||
Reference in new issue
Block a user