aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/lua/autoload.lua
Commit message (Collapse)AuthorAge
* TOOLS/autoload: Fixed broken "disabled" optionGravatar Andreas Wennerberg2018-06-23
| | | | `--script-opts=autoload-disabled=yes` now properly stops the script from running.
* TOOLS/autoload: be more robust with slow directory listingsGravatar Ricardo Constantino2018-03-10
| | | | | | | | | | Overall, just shuffled code around and added a few debugging messages for future issues. The issue could be reproduced easily by quickly navigating through the playlist inside a network mount. Closes #5618
* TOOLS/autoload.lua: update extensionsGravatar Ckat2017-12-03
| | | | | * duplicated 'ogv' renamed to 'ogm' * 'ogg' and 'opus' added as common audio file extensions
* TOOLS/autoload.lua: implement natural sortingGravatar Ricardo Constantino2017-08-16
|
* TOOLS/lua/autoload.lua: ignores all files starting with "."Gravatar Yue Zhu2017-05-20
|
* TOOLS/lua/autoload.lua: actually sort files case insensitiveGravatar Ricardo Constantino2017-05-04
| | | | | Regression since 8996f79edbf. Closes #4398
* TOOLS/autoload: allow disabling through script-optsGravatar Ricardo Constantino2016-12-05
| | | | | | | | | | | This allows leaving autoload in auto-loaded scripts and to be used in a special profile like "pseudo-gui" without being troublesome to disable the behavior in profiles that get applied after pseudo-gui. Ex: [someprofile] script-opts=autoload-disabled=yes
* Use - as command-name separator everywhereGravatar Timotej Lazar2016-07-14
| | | | | | | Old-style commands using _ as separator (e.g. show_progress) were still used in some places, including documentation and configuration files. This commit updates all such instances to the new style (show-progress) so that commands are easier to find in the manual.
* TOOLS/lua/autoload.lua: remove the extension prior to sortGravatar Alexis Nootens2016-02-02
| | | | | | 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.
* TOOLS/autoload: avoid throwing an error when playing e.g. youtubeGravatar bitingsock2015-10-20
| | | | Signed-off-by: wm4 <wm4@nowhere>
* TOOLS/lua/autoload: fix adding more files at end of auto-playlistGravatar Ricardo Constantino2015-08-20
| | | | | | | | | 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.
* TOOLS/lua/autoload: add all files on startGravatar wm42015-08-20
| | | | | | Or almost. I don't know or care. Fixes #2219 (maybe, I don't know or care).
* TOOLS/lua/autoload: don't run if playlist is loadedGravatar Ricardo Constantino2015-08-10
|
* TOOLS/autoload: load only files that make senseGravatar Marcin Kurczewski2015-04-21
|
* TOOLS/autoload: add blank lines for readabilityGravatar Marcin Kurczewski2015-04-21
|
* TOOLS: autoload.lua: sort files case insensitiveGravatar wm42015-04-18
| | | | | Suggested by a user. The suggested code which was added her comes from PIL.
* TOOLS/lua/autoload: fix behavior with network URLsGravatar wm42015-01-03
| | | | | readdir() fails if the directory is an URL, so just exit instead of letting the Lua script fail.
* TOOLS/lua/autoload: fix operation outside of working dirGravatar wm42014-10-26
| | | | Fixes #1222. (This commit is based on a patch posted there.)
* TOOLS/lua/autoload: don't shadow local variableGravatar wm42014-10-26
| | | | "dir" is already used somewhere above. This was ok, but not nice.
* lua: fix compilation with lua 5.2Gravatar wm42014-05-26
| | | | | | | | | | | 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.
* autoload.lua: fix autoloading of files to prependGravatar wm42014-05-25
| | | | This used the wrong index variable, and thus didn't work.
* TOOLS: add a Lua script to autoload playlist entriesGravatar wm42014-05-25
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.