From ef0aafbd429792781886a6da9d392ddf76cdc7d6 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Fri, 23 Apr 2021 22:42:22 +0300 Subject: DOCS: mpv.rst: minor escaping clarifications Fixes #8767 --- DOCS/man/mpv.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 736c9a097d..e0ac72c636 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -390,6 +390,9 @@ It is started with ``%`` and has the following format:: ``mpv --vf=foo:option1=%`expr length "$NAME"`%"$NAME" test.avi`` +Note: where applicable with JSON-IPC, ``%n%`` is the length in UTF-8 bytes, +after decoding the JSON data. + Suboptions passed to the client API are also subject to escaping. Using ``mpv_set_option_string()`` is exactly like passing ``--name=data`` to the command line (but without shell processing of the string). Some options @@ -511,7 +514,7 @@ They support the following operations: ============= =============================================== Suffix Meaning ============= =============================================== --set Set a list of items (using the list separator, interprets escapes) +-set Set a list of items (using the list separator, escaped with backslash) -append Append single item (does not interpret escapes) -add Append 1 or more items (same syntax as -set) -pre Prepend 1 or more items (same syntax as -set) -- cgit v1.2.3