diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2017-07-11 23:40:40 +0100 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@gmail.com> | 2017-07-11 23:42:22 +0100 |
commit | db60cbb80acf3709e6d0756fffa42a87baf27973 (patch) | |
tree | 5d78e36fd550131d7fe81a51b0bd1c2054dcb1e6 /DOCS/man/options.rst | |
parent | 042e98f4c9afb5cb41c727a6cf61a1e447710d9b (diff) | |
download | mpv-db60cbb80acf3709e6d0756fffa42a87baf27973.tar.bz2 mpv-db60cbb80acf3709e6d0756fffa42a87baf27973.tar.xz |
ytdl_hook: actually load the script-opts
Also, comma-separated list doesn't actually work, even quote-surrounded.
Switch to using | instead.
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r-- | DOCS/man/options.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 6f20a4f3f5..054058362a 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -531,12 +531,12 @@ Program Behavior If the script can't do anything with an URL, it will do nothing. - The `exclude` script option accepts a comma-separated list of URL patterns + The `exclude` script option accepts a ``|``-separated list of URL patterns which mpv should not use with youtube-dl. The patterns are matched after the ``http(s)://`` part of the URL. ``^`` matches the beginning of the URL, ``$`` matches its end, and you - should use ``%`` before any of the characters ``^$()%,.[]*+-?`` to match + should use ``%`` before any of the characters ``^$()%|,.[]*+-?`` to match that character. .. admonition:: Example @@ -544,7 +544,7 @@ Program Behavior ``--script-opts=ytdl_hook-exclude='^youtube%.com'`` will exclude any URL that starts with ``http://youtube.com`` or ``https://youtube.com``. - ``--script-opts=ytdl_hook-exclude='%.mkv$,%.mp4$'`` will exclude any + ``--script-opts=ytdl_hook-exclude='%.mkv$|%.mp4$'`` will exclude any URL that ends with ``.mkv`` or ``.mp4``. See more `lua patterns here`__. |