-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPRIS commands are a bit slow #891
Comments
i think every mpris command does a network request to the spotify api to get the info, so it makes sense it is slow. A better method should be made for this, either caching or preemptively fetch the info on song change. @matbme Thats weird and definitly a bug! |
FWIW, it seems not to be all commands. I've found that |
Turns out playerctl might be at fault here. MPRIS commands sent with dbus-send are instantaneous, but the same commands sent with playerctl are uncomfortably slow. playerctl sends a DBus Maybe spotifyd should implement a workaround for In the meantime, users can substitute playerctl with dbus-send (Don't forget to replace
|
Thank you for the investigations! I did a small write-up about the current state of things in |
I have to correct myself; playerctl's |
I can also confirm this behavior, so for now I've done the same using the below as a template:
|
I have the same problem, but the delay is around 4s (yes, it's really annoying). Even using Edit: I should have mentioned that I'm on arch and I'm using the |
We're mainly waiting for a librespot release here, since then we'll get access to all necessary information to dispatch commands locally. |
Description
MPRIS commands to spotifyd usually take aroud half a second, sometimes longer. I'd expect it to react almost instantaneously.
To Reproduce
For example with
playerctl status
Versions
The text was updated successfully, but these errors were encountered: