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 (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
47 if #dir == 0 then47 if #dir == 0 then
48 return48 return
49 end49 end
50 local isplaylist = mp.get_property("playlist-count")
51 if #isplaylist > 1 then
52 return
53 end
50 54
51 local files = mputils.readdir(dir, "files")55 local files = mputils.readdir(dir, "files")
52 if files == nil then56 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