librespot icon indicating copy to clipboard operation
librespot copied to clipboard

Librespot instance not shown in latest android/web spotify app

Open xhpohanka opened this issue 1 year ago • 5 comments

Describe the bug I'm not sure when it started, but my librespot instance is not visible anymore in spotify application. The only solution I found is to use -u and -p and let the librespot log in with my credentials.

Spotify application on my linux box in version 1.2.26.1187.g36b715a1 is still able to show and connect to librespot even without login.

Is this behavior documented somewhere?

xhpohanka avatar Feb 20 '24 10:02 xhpohanka

Librespot running on what platform?

kingosticks avatar Feb 20 '24 10:02 kingosticks

I first noticed it on my RPi box running libreelec. I can reproduce it on my workstation with up to date Arch linux.

Update: android spotify 8.9.12.599 works 8.9.14.543 does not...

xhpohanka avatar Feb 20 '24 10:02 xhpohanka

Can reproduce as well, -u and -p works.

gianklug avatar Feb 21 '24 11:02 gianklug

Yes, this has been the case for some time. The issue is that the app must be running on a mobile device on the same network as librespot for discovery and credential sharing to work. Librespot will seem flaky if it restarts and the mobile app discovery stuff isn't visible to it. It will fail to connect and will no longer be visible through through the web API.

You can use the web API directly to help diagnose this:

https://api.spotify.com/v1/me/player/devices

noahhaon avatar Feb 28 '24 18:02 noahhaon

All this seems strange to me I have found that librespot without specified username works fine for my wife using Samsung S24 and Spotify 8.9.20.574, my Xperia with same Spotify version does not see the instance at all. When I use the username then my wife's phone is not able to connect (we don't have a family account). The web API behaves the same as my phone.

xhpohanka avatar Mar 13 '24 21:03 xhpohanka