[GH-ISSUE #82] Allow connections from different accounts? #72

Closed
opened 2026-02-27 19:28:40 +03:00 by kerem · 3 comments
Owner

Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/82

Issue by Hoeze
Monday Aug 28, 2017 at 00:43 GMT
Originally opened as https://github.com/plietar/librespot/issues/240


Hi,
I'd like to create a small Spotify Connect daemon running on our HTPC, which allows any Spotify application in the network to control it (maybe secured by an account whitelist..?).
However, I just noticed that, when using a different account, the Spotify Web Player simply ignores librespot and the desktop client tells me that I have to buy premium, although I use librespot already with a premium account...

  • Is there a way to allow different Spotify accounts to control the daemon?
  • Is there a way to allow non-premium accounts to control the daemon?
    E.g. by simulating a standard web / desktop player?
Originally created by @sashahilton00 on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/82 <a href="https://github.com/Hoeze"><img src="https://avatars0.githubusercontent.com/u/1200058?v=4" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [Hoeze](https://github.com/Hoeze)** _Monday Aug 28, 2017 at 00:43 GMT_ _Originally opened as https://github.com/plietar/librespot/issues/240_ ---- Hi, I'd like to create a small Spotify Connect daemon running on our HTPC, which allows any Spotify application in the network to control it (maybe secured by an account whitelist..?). However, I just noticed that, when using a different account, the Spotify Web Player simply ignores librespot and the desktop client tells me that I have to buy premium, although I use librespot already with a premium account... - Is there a way to allow different Spotify accounts to control the daemon? - Is there a way to allow non-premium accounts to control the daemon? E.g. by simulating a standard web / desktop player?
kerem 2026-02-27 19:28:40 +03:00
  • closed this issue
  • added the
    imported
    label
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by rrbutani
Monday Aug 28, 2017 at 02:13 GMT


Did you try using discovery mode? I believe that should allow different (albeit premium) accounts to control librespot (but I may be wrong - I have not tested this).

My understanding is that librespot is intentionally limited to premium accounts so as to not provoke the ire of Spotify. As such, I think librespot presents itself as a spirc device that requires a premium account (correct me if I'm wrong).

<!-- gh-comment-id:361276370 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/rrbutani"><img src="https://avatars1.githubusercontent.com/u/7833358?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [rrbutani](https://github.com/rrbutani)** _Monday Aug 28, 2017 at 02:13 GMT_ ---- Did you try using [discovery mode](https://github.com/plietar/librespot#discovery-mode)? I believe that should allow different (albeit premium) accounts to control librespot (but I may be wrong - I have not tested this). My understanding is that librespot is intentionally limited to premium accounts so as to not provoke the ire of Spotify. As such, I think librespot presents itself as a spirc device that requires a premium account (correct me if I'm wrong).
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by Hoeze
Monday Aug 28, 2017 at 13:31 GMT


Yes, I understand the point with premium.
However, I already need a premium account to connect to Spotify.

My target would be to allow playing playlists from different accounts, especially because of the "discover weekly" lists of different music flavours for different accounts.
Of course I can let each guest export the playlist and play it directly from the premium account, but it would be cool if I could avoid that.
Not all people have bought Spotify premium and requiring premium for that small convenience is unreasonable.

Is there a way to change that "spirc" identity? Or does "spirc" directly refer to a certain protocol?
Using discovery mode causes Spotify to directly stream to librespot from the guest account I think..?

<!-- gh-comment-id:361276398 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/Hoeze"><img src="https://avatars0.githubusercontent.com/u/1200058?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [Hoeze](https://github.com/Hoeze)** _Monday Aug 28, 2017 at 13:31 GMT_ ---- Yes, I understand the point with premium. However, I already need a premium account to connect to Spotify. My target would be to allow playing playlists from different accounts, especially because of the "discover weekly" lists of different music flavours for different accounts. Of course I can let each guest export the playlist and play it directly from the premium account, but it would be cool if I could avoid that. Not all people have bought Spotify premium and requiring premium for that small convenience is unreasonable. Is there a way to change that "spirc" identity? Or does "spirc" directly refer to a certain protocol? Using discovery mode causes Spotify to directly stream to librespot from the guest account I think..?
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

@Hoeze in response to your questions:

Is there a way to allow different Spotify accounts to control the daemon?
Not easily. The protocol is designed such that the current play queue is tied to a specific account, and librespot is authenticated to a single account. There is no easy way to allow other accounts to see/update the queue. This could be done via a local API that feeds the commands to librespot though.
Is there a way to allow non-premium accounts to control the daemon?
See response above. There's no easy way to allow multiple accounts to create/view/update a shared play queue, hence everything would have to be done through some sort of API you'd implement to librespot. Thus Free or Premium doesn't come into it.

<!-- gh-comment-id:361321751 --> @sashahilton00 commented on GitHub (Jan 29, 2018): @Hoeze in response to your questions: **Is there a way to allow different Spotify accounts to control the daemon?** Not easily. The protocol is designed such that the current play queue is tied to a specific account, and librespot is authenticated to a single account. There is no easy way to allow other accounts to see/update the queue. This could be done via a local API that feeds the commands to librespot though. **Is there a way to allow non-premium accounts to control the daemon?** See response above. There's no easy way to allow multiple accounts to create/view/update a shared play queue, hence everything would have to be done through some sort of API you'd implement to librespot. Thus Free or Premium doesn't come into it.
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#72
No description provided.