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 TOOLS/lua/README: link to list of user scripts on wiki 2016-03-18 22:07:30 +01:00
acompressor.lua various: fix typos 2022-04-25 09:07:18 -04:00
ao-null-reload.lua TOOLS/lua/ao-null-reload.lua: send ao-reload on audio-device-list change 2016-01-28 06:49:36 -08:00
audio-hotplug-test.lua command: drop "audio-out-detected-device" property 2017-10-09 15:48:47 +02:00
autocrop.lua TOOLS/autocrop.lua: allow hiding OSD messages 2021-07-27 20:32:05 +03:00
autodeint.lua TOOLS/lua/autodeint: update to lavfi-bridge 2017-08-21 18:12:10 +01:00
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 TOOLS/lua: remove tabs from some lua scripts 2014-10-21 00:55:15 +02:00
nan-test.lua vo_gpu, options: don't return NaN through API 2019-10-25 00:25:05 +02:00
observe-all.lua TOOLS/lua/observe-all: explicitly observe all options 2016-09-23 20:49:23 +02:00
ontop-playback.lua TOOLS: add a lua script for a -stay on top only during playback- mode 2015-03-23 20:45:12 +01:00
osd-test.lua command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
pause-when-minimize.lua w32_common: support the "window-minimized" property 2015-03-09 11:46:06 +01:00
skip-logo.lua skip-logo.lua: remove lua 5.2 warning message 2020-02-29 21:49:14 +01:00
status-line.lua TOOLS/lua/status-line: improve and update 2017-08-04 09:07:37 +01:00
test-hooks.lua client API: provide ways to finish property changes on file changes 2020-03-07 02:52:10 +01:00

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.)