Skip to content
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

Artist and Track Information Sometimes Missing on Spotify Opening #2

Open
corigne opened this issue Apr 23, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@corigne
Copy link
Owner

corigne commented Apr 23, 2024

Spotify takes an agonizingly long time to register the artist and track information with the Mpris player interface in DBus at launch. Depending on how fast your machine spins up the spotify client, it could take upward of a full second for DBus to have all poll-able information about the current track.

I've added a 1.25 seconds sleep between name owner change detection and polling for the track/artist information which appears to give spotify enough time, at least on my devices.

This may not be acceptable for slower devices, though, so I will look into something a little more robust that polls dbus until the artist and track name are not empty strings before updating the module.

See commit d38b192 and 61ee538 for action on this so far.

@corigne corigne self-assigned this Apr 23, 2024
@corigne corigne added the bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant