Open ShrekRequiem opened 4 weeks ago
I also met such delay before. To solve it, I even added a TICK to update mpris after each action. But it's not working...
I also met such delay before. To solve it, I even added a TICK to update mpris after each action. But it's not working...
Glad to know I'm not the only one, did you manage to solve it in the end or just switch music player ? I really like termusic
I am trying to fix it. Currently the structure is a little complex. The mpris is managed by server, and there are several delay in the whole process.
I think e03018738c816ba0fa11adfc3744310229dd3476 fixed this problem. Please try to checkout the source in master and see if it's ok.
By the way, I'm also using waybar, but with a little different solution. I'm using a script from:
https://github.com/polybar/polybar-scripts/blob/master/polybar-scripts/player-mpris-tail/player-mpris-tail.py
And my configuration in waybar is:
"custom/mpris": {
"format": "{}",
// "return-type": "json",
// "format-icons": {
// "Playing": " ",
// "Paused": " ",
// },
"max-length":30,
"exec": "~/.config/waybar/scripts/player-mpris-tail.py -f '{icon} {artist} - {title}' -b plasma-browser-integration -b chromium",
"on-click": "~/.config/waybar/scripts/player-mpris-tail.py play-pause",
"on-click-right": "~/.config/waybar/scripts/player-mpris-tail.py next",
"on-click-middle": "~/.config/waybar/scripts/player-mpris-tail.py previous",
},
Environment & Versions
Logs: empty
Description of the Problem
It's working perfectly but there is a big delay between a song change and the time playerctl metadata change. It's not a big deal but I have the following script that I use to have a little player on my waybar and it doesn't change until minutes after the song change. The problem is specific to termusic (no problem with other players) and stays regardless of the backend (tried all of them). I might've missed something but I'm pretty sure this is my last resort.