History

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

Ricardo Constantino committed 11 years ago

Commit dfd8a5f1 parent 91b9dcf1 file · +4 −0Browse files

Showing the changes to TOOLS/lua/autoload.lua (1 of 1 file). Show all

Unified · Split

TOOLS/lua/autoload.lua+4−0
@@ -47,6 +47,10 @@ function find_and_add_entries() · 46 unmodified lines
4747 if #dir == 0 then
4848 return
4949 end
50+ local isplaylist = mp.get_property("playlist-count")
51+ if #isplaylist > 1 then
52+ return
53+ end
5054
5155 local files = mputils.readdir(dir, "files")
5256 if files == nil then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t