Skip to content

Commit 76df218

Browse files
committed
osc.lua: remove NIH list formatting
All of the code to format playlist/track-list/chapter-list is unnecessary when mpv's core can already show-text these properties. Also an issue with this custom formatting is that showing fewer entries than can fit on the OSD can make it seem like the playlist ends there and there are no entries afterwards. Also remove lots of pointless code around the track-list (mpv's track id and the osc_id are exactly the same). This simplification will make it easier to bind customizable commands, otherwise yet another script message to call set_track would have to be added, when cycle sub/audio already output information about the new track on their own.
1 parent 10276ce commit 76df218

File tree

2 files changed

+45
-285
lines changed

2 files changed

+45
-285
lines changed

DOCS/man/osc.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,6 @@ Script Commands
493493
The OSC script listens to certain script commands. These commands can bound
494494
in ``input.conf``, or sent by other scripts.
495495

496-
``osc-message``
497-
Show a message on screen using the OSC. First argument is the message,
498-
second the duration in seconds.
499-
500496
``osc-visibility``
501497
Controls visibility mode ``never`` / ``auto`` (on mouse move) / ``always``
502498
and also ``cycle`` to cycle between the modes.
@@ -515,8 +511,3 @@ to set auto mode (the default) with ``b``::
515511
``osc-idlescreen``
516512
Controls the visibility of the mpv logo on idle. Valid arguments are ``yes``,
517513
``no``, and ``cycle`` to toggle between yes and no.
518-
519-
``osc-playlist``, ``osc-chapterlist``, ``osc-tracklist``
520-
Shows a limited view of the respective type of list using the OSC. First
521-
argument is duration in seconds.
522-

0 commit comments

Comments
 (0)