From 00cdda2ae80f2f3c5b6fc4302d7edaf14755d037 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 19 Jan 2020 19:25:54 +0100 Subject: scripting: make player error when attempting to load unknown scripts It's ridiculous that --script=something.dumb does not cause an error. Make it error, and extend this behavior to the scripts/ sub-dir in the mpv config dir. --- DOCS/man/mpv.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 676cd1897f..9cc0726639 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -1242,9 +1242,10 @@ For Windows-specifics, see `FILES ON WINDOWS`_ section. ``~/.config/mpv/scripts/`` All files in this directory are loaded as if they were passed to the - ``--script`` option. They are loaded in alphabetical order, and sub-directories - and files with no ``.lua`` extension are ignored. The ``--load-scripts=no`` - option disables loading these files. + ``--script`` option. They are loaded in alphabetical order. Directory entries + other than files are ignored. Files with unknown extension lead to an + initialization error. Files with ``.disable`` extension are ignored. The + ``--load-scripts=no`` option disables loading these files. ``~/.config/mpv/watch_later/`` Contains temporary config files needed for resuming playback of files with -- cgit v1.2.3