Open krillin666 opened 3 years ago
Well, I'll think about that. I'm busy today, so this (for sure this time) won't be ready by today. It may be more difficult than displaying the song in the controls menu, since the script isn't multithreaded, you run it two times to get the video and controls at the same time. While the script handles the title in controls menu, it can't be done that way for displaying titles while the playlist is playing. The playlist is handled entirely by mpv and I can't inject bash script between the songs/videos. I might find a way to do it, I just need more time. If you know lua well, you can modify that lua script you found. It doesn't work in this case because it either:
Another solution would be to write a second bash script that would run in the background and check whether or not mpv song changed, and send a notification when it did. That would most likely be the simplest solution.
Thank you for the last update !
Is there a way one could get a notification, through
notify-send
ordunst
of the current playing song when a song changes in a playlist ? I see that you can display it in the Controls menu, so maybe it's not that easy to implement. I tried using this MPV script https://github.com/emilazy/mpv-notify-send, however it displays the file aka the YouTube link and not the song text.Thank you once again :smile: