-
Notifications
You must be signed in to change notification settings - Fork 457
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
Upgrade rspotify to 0.11.5 #1079
Conversation
i'm getting this error when compiling:
Any ideas on how to fix it ? |
@NNEU-1 This originates in the |
... Of course you are spot on :P |
@eladyn, could you please consider merging this with your pr_collection branch ? I just realised I have to go back to hardcoding the dbus type to "system" with this. |
Should be added now. |
Just tried it. So it seems like polling the status & metadata works fine, but metadata & status changes are not properly registered to trigger a properties changed event. |
@NNEU-1 Huh, that is strange. Has never happened to me yet (I think). In theory, this still uses the same code that #1025 introduced. Is this a regular time interval that it stops working, does it start working again after manually polling the properties? Is there something in the logs that indicates a potential problem? If you turn on Also, is this something that happens only on the |
@eladyn I only tried pr_collection so far. I'll dig a little deeper on both version and let you know my findings. |
Just a quick preliminary update: I was / am using a custom software to monitor the dbus for player events, which I also used to check the functionality of Spotifyds dbus. |
Good to hear that this hasn't happened again. However, thanks to your comment, I discovered a bug: In combination with #1059 (which makes This might have been the reason for some weird behaviour that you describe, but I'm not sure. Anyway, I'll probably fix this in #1059, since this isn't really related to this PR. Thank you for the help with testing! |
Thanks! |
This mainly upgrades the
rspotify
crate to0.11.5
. Since large parts of the API surface changed between (the previous)0.8.0
and0.11.5
, the changes are a bit more complex in some cases.Other changes
Arc
to the API client; this facilitates requesting a new token after expiry (fixes Err(Unauthorized) when fetching metadata #1074).insert_metadata()
as much as possiblerspotify
dependency optional (only needed withdbus_mpris
)device_name
matching in some dbus methods, as thedevice.name
is not (or no longer?) percent encodedcargo update
, since otherwisespotifyd
would not compile with the dependency updatesTODO
improve clunkyOpenURI
implementation (see Upgrading to v0.11: questions and support ramsayleung/rspotify#218 (comment))There is currently not much, we can do about that ugly implementation. Will probably be resolved in a future version of
rspotify
.Episode
cases properlyconsider using theThis is not easily feasible as it would require many changes that would make this PR quite difficult to review, better suited for a follow-up.async
variant of therspotify
crate (reqwest
client)fixes #1069