mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1046] Autoplay failing to get attribute #492
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#492
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 @musshorn on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1046
Describe the bug

Autoplay fails with the warning
WARN librespot_connect::spirc] Unable to get autoplay user attribute. Continuing with autoplay disabled.but it's enabled in the windows desktop UITo reproduce
Steps to reproduce the behavior:
Log
Host (what you are running
librespoton):27e1274(Built on 2022-08-18, Build ID: SbfdVjDd, Profile: release)Additional context
Looks like it's almost certainly related to the new-api efforts, but I'm not familiar enough with rust to debug it further.
@roderickvd commented on GitHub (Aug 18, 2022):
Can you please post the full debug log, right from the start, including all messages from the initial login?
@musshorn commented on GitHub (Aug 19, 2022):
Certainly!
librespot.log
Not sure if this is a factor but when I was recording that log, the first run it worked (as in the next song autoplayed) it was only after i added the
--oneventflag it stopped working. It continued to fail though even when I removed the flag again.@roderickvd commented on GitHub (Aug 20, 2022):
That’s interesting. When you toggle the autoplay switch in the client while playing in
librespot, what do the logs then say?@musshorn commented on GitHub (Aug 21, 2022):
I've attached a full log, but this appears to be the only message when I toggle autoplay in the client
[2022-08-21T02:09:20Z TRACE librespot_connect::spirc] Received attribute mutation for autoplay but key was not found!librespot.log
I was toggling it before the song ended as well as after
@roderickvd commented on GitHub (Aug 22, 2022):
It's really interesting that apparently, Spotify is not consistent in sending the same product info on login. In your case, you are not being pushed an
autoplayproperty, which myself I do get consistently, at least from The Netherlands. We need to know the initial state, because the mutation message doesn't send a new value, just signals the fact that it's being toggled.I don't see any other property either that could replace it.
It seems that you have blocked
apresolve.spotify.com, correct? Could you try what happens if you unblock it, so that you don't use a fallback access point?This brings me to a couple of thoughts:
--autoplay {auto|on|off}command line option to allow for an override.@musshorn commented on GitHub (Aug 23, 2022):
Bizzare.
I've attached a log with the
apresolve.spotify.comblock removed, still fails the same way. I'd initially blocked that as I was having the same issue as #972 but I just saw your comment that it's no longer required.librespot.log
@roderickvd commented on GitHub (Sep 28, 2022):
This should now be fixed in
6dc7a11b09which re-introduces anautoplaycommand-line option as a manual override.@musshorn commented on GitHub (Sep 29, 2022):
Confirmed that's working a treat! Thanks for the fix