mpv/TOOLS/lua
Christoph Heinrich 7b09bf7ffc TOOLS/lua/autoload: improve alphanumeric sorting
Currently filenames like `EP.1.v0.1080p.mp4` do not get sorted correctly
(e.g. episode 11 right after episode 1). That is caused by the `.` in
front of the episode number, making it get sorted as if it were
decimals.

The solution is to match the whole real number or integer instead of
matching the integer part and the fractional part separately.

This will regress sorting of numbers with multiple commas where the
length of the individual segments differs between filenames.
Since those are rather uncommon, that is unlikely to be a problem (for
anyone ever).
2023-01-15 16:45:24 +00:00
..
README.md
acompressor.lua various: fix typos 2022-04-25 09:07:18 -04:00
ao-null-reload.lua
audio-hotplug-test.lua
autocrop.lua TOOLS/autocrop.lua: allow hiding OSD messages 2021-07-27 20:32:05 +03:00
autodeint.lua
autoload.lua TOOLS/lua/autoload: improve alphanumeric sorting 2023-01-15 16:45:24 +00:00
command-test.lua command: extend subprocess command stdin, change behavior 2020-08-16 02:54:44 +02:00
cycle-deinterlace-pullup.lua
nan-test.lua
observe-all.lua
ontop-playback.lua
osd-test.lua
pause-when-minimize.lua
skip-logo.lua
status-line.lua
test-hooks.lua

README.md

mpv lua scripts

The lua scripts in this folder can be loaded on a one-time basis by adding the option

--script=/path/to/script.lua

to mpv's command line.

Where appropriate, they may also be placed in ~/.config/mpv/scripts/ from where they will be automatically loaded when mpv starts.

This is only a small selection of internally maintained scripts. Some of them are just for testing mpv internals, or serve as examples. An extensive user-edited list of 3rd party scripts is available here:

https://github.com/mpv-player/mpv/wiki/User-Scripts

(Anyone can add their own scripts to that list.)