mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #181] MPRIS/playerctl very slow to update after track changes (Linux) #1027
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1027
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lilacpixel on GitHub (Apr 22, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/181
Describe the bug
When the current track changes, there is no delay in playing audio, and the spotify-player interface updates almost immediately, but MPRIS takes several seconds (or longer) to report the details of the new track. Running
playerctl metadatawill continue to show metadata for the previous track, sometimes for as long as 8-10 seconds into the new track. This delay isn't seen with other applications that report current audio to MPRIS (Firefox, ncspot, mpv, etc). Is it hanging on the request for album art?(Edit: I may have underestimated the delay—just timed the latest track change delay at a little over 30 seconds, which is a pretty decent chunk of the whole song!)
To Reproduce
Expected behavior
MPRIS should update with new metadata immediately after track changes (< 1 second).
Log and backtrace
Environment
cargo install --git https://github.com/aome510/spotify-player.git --features sixelMPRIS quirks aside, thanks for a great application—really nice to have feature parity with the official client in a lightweight terminal app! 😺
@aome510 commented on GitHub (Apr 22, 2023):
Thanks for the kind words. I didn't have this experience with my other Ubuntu machine. Let me try again later this week to see if I can reproduce the issue.
@sewnie commented on GitHub (Apr 23, 2023):
on my machine it takes ~390ms.
@aome510 commented on GitHub (Apr 24, 2023):
@lunamode I just tested on ubuntu machine and the delay was about 1s. I didn't get any long delays like 8-10s. I don't really know how this issue happens. The log looks normal to me.
@aome510 commented on GitHub (May 8, 2023):
@lunamode do u still encounter this issue?
@lilacpixel commented on GitHub (May 9, 2023):
I'm now seeing delays of just a second or so, similar to what you encountered on Ubuntu. No more huge delays of 10+ seconds. I'm guessing that whatever I was seeing before was just some temporary weirdness, maybe related to the Fedora 38 upgrade…? I appreciate you taking the time to test on your end—thanks so much! ☺️