Commit 545ef8f
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.
show-text ${track-list} shows all types of tracks unlike the OSC
formatting. Sub-properties to only show one type can be added to
replicate that if requested.1 parent 48963ae commit 545ef8f
2 files changed
Lines changed: 45 additions & 285 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | 496 | | |
501 | 497 | | |
502 | 498 | | |
| |||
515 | 511 | | |
516 | 512 | | |
517 | 513 | | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
0 commit comments