[GH-ISSUE #742] Discovery not disabled when credentials are specified #405

Closed
opened 2026-02-27 19:30:26 +03:00 by kerem · 5 comments
Owner

Originally created by @aanno on GitHub (May 13, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/742

(Cross post from https://github.com/Spotifyd/spotifyd/issues/948 as spotifyd uses librespot)

We've got a (paid) spotify family account and I have set up spotifyd with my user. However with this, my son could not 'respot' to spotifyd (but he could see the device in his official spotify android app). Is this the expected behaviour? Is there a way around?

BTW, there a 'dump' devices like speakers that spotify could 'respot' to that are not registered/associated with a spotify account. I wonder if there is way to run spotifyd (i.e. librespot) in a similiar mode?

Originally created by @aanno on GitHub (May 13, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/742 (Cross post from https://github.com/Spotifyd/spotifyd/issues/948 as spotifyd uses librespot) We've got a (paid) spotify family account and I have set up spotifyd with my user. However with this, my son could not 'respot' to spotifyd (but he could see the device in his official spotify android app). Is this the expected behaviour? Is there a way around? BTW, there a 'dump' devices like speakers that spotify could 'respot' to that are not registered/associated with a spotify account. I wonder if there is way to run spotifyd (i.e. librespot) in a similiar mode?
kerem 2026-02-27 19:30:26 +03:00
Author
Owner

@JasonLG1979 commented on GitHub (May 14, 2021):

From what I understand if you provide librespot with credentials you are effectively locking it to that account. I'd guess even though he's under the same family account he still has a different username at least? The fact that discovery isn't turned off when credentials are provided is the real bug here.

You shouldn't have to provide credentials at all and it should work in discovery mode. Have you tried that?

<!-- gh-comment-id:841376836 --> @JasonLG1979 commented on GitHub (May 14, 2021): From what I understand if you provide librespot with credentials you are effectively locking it to that account. I'd guess even though he's under the same family account he still has a different username at least? The fact that discovery isn't turned off when credentials are provided is the real bug here. You shouldn't have to provide credentials at all and it should work in discovery mode. Have you tried that?
Author
Owner

@jonsolberg-zz commented on GitHub (May 22, 2021):

I'm having a similar issue:

Two premium users for which one cannot connect but can see the Librespot instance (from phone or Windows 10 desktop app). The other user can connect and play just fine, regardless of device.

Discovery is turned on, but user credentials for the working user are present in settings.xml and cache/credentials.json files.

If I remove all settings and turn on discovery both users can see the Librespot instance, but neither of them can connect. No information in the logs for the users that cannot connect in both cases.

So, to me it's a catch 22. Either provide credentials and only allow one user to connect or don't provide them and don't let anyone connect. Discovery mode (which seem to be a new feature as of version 9.2.0.120) does not seem to work with several users or without any credentials provided.

Two users used to work, but some way along the way between 9.2.0.117 to the current 9.2.0.125 it stopped, perhaps due to an update on the Spotify side? Tried them all with clean settings and credentials provided, and older versions without the discovery feature only show for the user with the supplied credentials; I can connect to the instance, but get no sound for versions before x.120.

<!-- gh-comment-id:846410328 --> @jonsolberg-zz commented on GitHub (May 22, 2021): I'm having a similar issue: Two premium users for which one cannot connect but can see the Librespot instance (from phone or Windows 10 desktop app). The other user can connect and play just fine, regardless of device. Discovery is turned on, but user credentials for the working user are present in settings.xml and cache/credentials.json files. If I remove all settings and turn on discovery both users can see the Librespot instance, but neither of them can connect. No information in the logs for the users that cannot connect in both cases. So, to me it's a catch 22. Either provide credentials and only allow one user to connect or don't provide them and don't let anyone connect. Discovery mode (which seem to be a new feature as of version 9.2.0.120) does not seem to work with several users or without any credentials provided. Two users used to work, but some way along the way between 9.2.0.117 to the current 9.2.0.125 it stopped, perhaps due to an update on the Spotify side? Tried them all with clean settings and credentials provided, and older versions without the discovery feature only show for the user with the supplied credentials; I can connect to the instance, but get no sound for versions before x.120.
Author
Owner

@shanemeagher commented on GitHub (May 22, 2021):

@jonsolberg are you using this from LibreELEC? If so, have you reported on the forum first to confirm it is not a fault with how addon is packaged?

https://forum.libreelec.tv/thread/8438-librespot-addon/

<!-- gh-comment-id:846414550 --> @shanemeagher commented on GitHub (May 22, 2021): @jonsolberg are you using this from LibreELEC? If so, have you reported on the forum first to confirm it is not a fault with how addon is packaged? https://forum.libreelec.tv/thread/8438-librespot-addon/
Author
Owner

@roderickvd commented on GitHub (May 25, 2021):

I just tried connecting to the same librespot instance from two different users. It works fine in discovery mode both with and without credentials specified on the command line.

This is running librespot 0.2.0-dev and I see that Spotifyd is still on 0.1.5.
Please try the latest version and report if this has since been fixed for you.

<!-- gh-comment-id:848186202 --> @roderickvd commented on GitHub (May 25, 2021): I just tried connecting to the same `librespot` instance from two different users. It works fine in discovery mode both with and without credentials specified on the command line. This is running `librespot` `0.2.0-dev` and I see that `Spotifyd` is still on `0.1.5`. Please try the latest version and report if this has since been fixed for you.
Author
Owner

@roderickvd commented on GitHub (Jun 14, 2021):

Cannot reproduce and no further replies.

<!-- gh-comment-id:860569011 --> @roderickvd commented on GitHub (Jun 14, 2021): Cannot reproduce and no further replies.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#405
No description provided.