| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
When the directory contains files named such as xx-14.ext and
xx-14.5.ext, remove the extension to sort the table to load the
14 before the 14.5.
|
|
|
|
| |
Signed-off-by: wm4 <wm4@nowhere>
|
|
|
|
|
|
|
|
|
| |
Fixes regression in dfd8a5f that made autoload not add more files
at the end of the current playlist if playlist was made by the
script.
This still prevents loading the script if more than one (media or
playlist) file was manually added.
|
|
|
|
|
|
| |
Or almost. I don't know or care.
Fixes #2219 (maybe, I don't know or care).
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Suggested by a user. The suggested code which was added her comes from
PIL.
|
|
|
|
|
| |
readdir() fails if the directory is an URL, so just exit instead of
letting the Lua script fail.
|
|
|
|
| |
Fixes #1222. (This commit is based on a patch posted there.)
|
|
|
|
| |
"dir" is already used somewhere above. This was ok, but not nice.
|
|
|
|
|
|
|
|
|
|
|
| |
Commit e2e450f9 started making use of luaL_register(), but OF COURSE
this function disappeared in Lua 5.2, and was replaced with a 5.2-only
alternative, slightly different mechanism.
So just NIH our own function. This is actually slightly more correct,
since it forces the user to call "require" to actually make the module
visible for builtin C-only modules other than "mp". Fix autoload.lua
accordingly.
|
|
|
|
| |
This used the wrong index variable, and thus didn't work.
|
|
This will load other files in the same directory when a single file is
played. It's an often requested feature, but we definitely don't want it
in the core.
|