jonniek / mpv-playlistmanager

Mpv lua script to create and manage playlists
The Unlicense
537 stars 42 forks source link

Does the script work in the terminal (command-line usage)? #98

Open ghost opened 1 year ago

ghost commented 1 year ago

Shift + Enter progresses to the next track / playlist entry when running mpv on the command-line, no mpv-playlistmanager's interface appears. The script functions correctly in the mpv window (which I prefer not to launch when playing audio).

I exclusively play audio with the mpv's --no-video flag (disables video playback, the mpv windows isn't created) and more or less always launch mpv (add files to a playlist) via the Unix shell.

jonniek commented 1 year ago

It currently does not work because terminal will not render ASS tags. It would not be impossible to fallback to OSD messages when playing audio only. If you look at commits before the ASS tags were implemented they should work on terminal. Here is the latest playlistmanager with OSD rendering:

https://github.com/jonniek/mpv-playlistmanager/tree/1e12d1c79954afc3fea8dd46c0bd24a6a4300164

https://raw.githubusercontent.com/jonniek/mpv-playlistmanager/1e12d1c79954afc3fea8dd46c0bd24a6a4300164/playlistmanager.lua

Above version renders like this in my terminal: image

It's missing a lot of features of course, but maybe it can work temporarily. I had to change the SHIFT+ENTER keybind though, as that was not working for some reason.

I'll leave this issue open since it would be a good feature to fallback to OSD rendering when no video is playing. Shouldn't be an enormous effort.

RealYukiSan commented 1 month ago

Looking forward to this audio-only support! I hope I can contribute to this awesome project, but unfortunately I'm not familiar with Lua stuff and MPV api (currently learning a little bit xD)