diff options
author | Guido Cella <guido@guidocella.xyz> | 2025-01-30 20:13:20 +0100 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2025-01-31 06:04:54 +0100 |
commit | 17e4cc53971d6e08cde128f677c181d48c7f2249 (patch) | |
tree | 7b9a58072669f0549517c1e4ac71d2c0a316fb51 | |
parent | 62c3aeb9cbdbd962fafb90c319ded92d1503e817 (diff) | |
download | mpv-17e4cc53971d6e08cde128f677c181d48c7f2249.tar.bz2 mpv-17e4cc53971d6e08cde128f677c181d48c7f2249.tar.xz |
DOCS/man/input: reorder user-data's docs
user-data/mpv/ytdl was documented out of nowhere instead of together
with user-data/osc.
-rw-r--r-- | DOCS/man/input.rst | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 6c270dc6d0..0fe8308556 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -3698,6 +3698,16 @@ Property list The player itself does not use any data in it (although some builtin scripts may). The property is not preserved across player restarts. + Sub-paths can be accessed directly; e.g. ``user-data/my-script/state/a`` can be + read, written, or observed. + + The top-level object itself cannot be written directly; write to sub-paths instead. + + Converting this property or its sub-properties to strings will give a JSON + representation. If converting a leaf-level object (i.e. not a map or array) + and not using raw mode, the underlying content will be given (e.g. strings will be + printed directly, rather than quoted and JSON-escaped). + The following sub-paths are reserved for internal uses or have special semantics: ``user-data/osc``, ``user-data/mpv``. Unless noted otherwise, the semantics of any properties under these sub-paths can change at any time and may not be relied @@ -3712,16 +3722,6 @@ Property list the left, right, top, and bottom margins respectively. Values are between 0.0 and 1.0, normalized to window width/height. - Sub-paths can be accessed directly; e.g. ``user-data/my-script/state/a`` can be - read, written, or observed. - - The top-level object itself cannot be written directly; write to sub-paths instead. - - Converting this property or its sub-properties to strings will give a JSON - representation. If converting a leaf-level object (i.e. not a map or array) - and not using raw mode, the underlying content will be given (e.g. strings will be - printed directly, rather than quoted and JSON-escaped). - ``user-data/mpv/ytdl`` Data shared by the builtin ytdl hook script. |