From 81dea9031dec05559624b6d2a8ea9bf89667f755 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 7 Oct 2023 16:53:52 +0200 Subject: command: add playlist-next-playlist and playlist-prev-playlist playlist-prev-playlist goes to the beginning of the previous playlist because this seems more useful and symmetrical to playlist-next-playlist. It does not go to the beginning when the current playlist-path starts with the previous playlist-path, e.g. with mpv --loop-playlist foo/, which expands to foo/{1..9}.zip, the current playlist path foo/1.zip beings with the playlist-path foo/ of {2..9}.zip and thus playlist-prev-playlist goes to 9.zip rather than to 2.zip. Closes #12495. --- DOCS/interface-changes.rst | 1 + DOCS/man/input.rst | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'DOCS') diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 62d271bcb1..d398ab7987 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -98,6 +98,7 @@ Interface changes - `--config-dir` no longer forces cache and state files to also reside in there - deprecate `--demuxer-cue-codepage` in favor of `--metadata-codepage` - change the default of `metadata-codepage` to `auto` + - add `playlist-next-playlist` and `playlist-prev-playlist` commands --- mpv 0.36.0 --- - add `--target-contrast` - Target luminance value is now also applied when ICC profile is used. diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index b4c133953e..00ce20c846 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -422,6 +422,13 @@ Remember to quote string arguments in input.conf (see `Flat command syntax`_). force Terminate playback if the first file is being played. +``playlist-next-playlist`` + Go to the next entry on the playlist with a different ``playlist-path``. + +``playlist-prev-playlist`` + Go to the first of the previous entries on the playlist with a different + ``playlist-path``. + ``playlist-play-index `` Start (or restart) playback of the given playlist index. In addition to the 0-based playlist entry index, it supports the following values: -- cgit v1.2.3