diff options
author | wm4 <wm4@nowhere> | 2020-01-19 19:25:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-01-19 19:25:54 +0100 |
commit | 00cdda2ae80f2f3c5b6fc4302d7edaf14755d037 (patch) | |
tree | 783efd7934056ad73a68593cf2878c5e89235958 /DOCS | |
parent | ee7be62dbc3c25b835c5f14b81382a5c306aa15b (diff) | |
download | mpv-00cdda2ae80f2f3c5b6fc4302d7edaf14755d037.tar.bz2 mpv-00cdda2ae80f2f3c5b6fc4302d7edaf14755d037.tar.xz |
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.
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/mpv.rst | 7 |
1 files changed, 4 insertions, 3 deletions
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 |