diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2015-08-08 01:52:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-10 00:07:31 +0200 |
commit | dfd8a5ff06efcb1273615f7f45d67e379e07cbb5 (patch) | |
tree | 362cb07964d49a129a91d280e37949f4dc5e9517 /TOOLS | |
parent | 91b9dcf800b4f2956449e88c1c9a6cba9216a59f (diff) | |
download | mpv-dfd8a5ff06efcb1273615f7f45d67e379e07cbb5.tar.bz2 mpv-dfd8a5ff06efcb1273615f7f45d67e379e07cbb5.tar.xz |
TOOLS/lua/autoload: don't run if playlist is loaded
Diffstat (limited to 'TOOLS')
-rw-r--r-- | TOOLS/lua/autoload.lua | 4 |
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 |