summaryrefslogtreecommitdiffstats
path: root/DOCS/interface-changes.rst
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-08-10 23:27:28 -0500
committerDudemanguy <random342@airmail.cc>2023-08-13 19:58:20 +0000
commite8a77e5279c2682a1554ba8fd47b99c6bf6f4d52 (patch)
tree43931c6983b6a8614bc2f147b5595b15b10b7a2f /DOCS/interface-changes.rst
parenta177fb6188e735da3536109105ec55a51b3b863c (diff)
downloadmpv-e8a77e5279c2682a1554ba8fd47b99c6bf6f4d52.tar.bz2
mpv-e8a77e5279c2682a1554ba8fd47b99c6bf6f4d52.tar.xz
player: add playlist-path properties
A bit of a long standing pain with scripting is that when opening a file that gets interpreted as a playlist (like an m3u), the original path of the file gets thrown away later. Workarounds basically consist of getting the filename before mpv expands the path, but that's not really reliable. Instead of throwing it away, save the original playlist path by copying to the playlist entries when applicable (demuxer playlist and the playlist option). Then expose these as properties: playlist-path for the currently playing entry and playlist/N/playlist-path for each specific entry. Closes #8508, #7605.
Diffstat (limited to 'DOCS/interface-changes.rst')
-rw-r--r--DOCS/interface-changes.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index 7d02d8ef46..9e883800e8 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -38,6 +38,7 @@ Interface changes
- change type of `--sub-pos` to float
- The remaining time printed in the terminal is now adjusted for speed by default.
You can disable this with `--no-term-remaining-playtime`.
+ - add `playlist-path` and `playlist/N/playlist-path` properties
--- mpv 0.36.0 ---
- add `--target-contrast`
- Target luminance value is now also applied when ICC profile is used.