mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +00:00
TOOLS/lua/autoload: don't run if playlist is loaded
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user