command: normalize paths for path and track-list/N/external-filename

It's better for API users to actually get predictable results.
This commit is contained in:
Dudemanguy
2025-01-30 14:32:49 -06:00
parent 02c0b346eb
commit 38ad1ed03b
3 changed files with 12 additions and 7 deletions

View File

@@ -0,0 +1 @@
the `path` and `track-list/N/external-filename` properties now always return a full, absolute path

View File

@@ -2109,10 +2109,7 @@ Property list
Process-id of mpv.
``path``
Full path of the currently played file. Usually this is exactly the same
string you pass on the mpv command line or the ``loadfile`` command, even
if it's a relative path. If you expect an absolute path, you will have to
determine it yourself, for example by using the ``normalize-path`` command.
Full absolute path of the currently played file.
``stream-open-filename``
The full path to the currently played media. This is different from