Skip to content
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

Librespot without a fixed user? #534

Open
Saik19922 opened this issue Aug 20, 2019 · 5 comments
Open

Librespot without a fixed user? #534

Saik19922 opened this issue Aug 20, 2019 · 5 comments

Comments

@Saik19922
Copy link

I've setup my musicbox and so far it's mostly working good.

However I've set it up for both me and my girlfriend living with me. We are both using it, with different Spotify Accounts. She has a Facebook-created account so logging in with user credentials is very tedious if not impossible - so I've used my username and password for the web-search functions and spotify features of Pi MusicBox.

However, we both occassionally use it via Spotify Connect, and she can't since a restart always changes the /etc/default/librespot file's ARGs to use my username and password.

How can I change it to accept any user?

@kingosticks
Copy link
Member

Librespot does support non-hardcoded credentials, I think. But I've never tried it.

To use it you would remove the username and password arguments that are present in /etc/default/librespot. Once librespot is restarted it should login automatically when each user selects it on their Spotify client. I don't know if it works for Facebook logins.

If it does work reliably, we could make that the default. Or, you can hack your version to do it.

@Saik19922
Copy link
Author

I am removing the username and password arguments in /etc/default/librespot but upon a restart Pi MusicBox will repopulate the file with my username and password.

It does work without username and password, I've been able to confirm that. But as of now I have to edit /etc/default/librespot every restart.

@kingosticks
Copy link
Member

OK, then comment out the line in /opt/musicbox/startup.sh that writes that librespot settings file.

@bluepuma77
Copy link

I think Facebook-created Spotify accounts also have a regular username. Just log in and check.

@nikaiser
Copy link

nikaiser commented Apr 3, 2021

Fo future users, I can confirm this works:

Step 1. Go to Spotify: https://accounts.spotify.com/en/login/
Step 2: Use Facebook account to log-in
Step 3: Go to Account Overview
Step 4: Under "Profile", your Username should show up as a numeric string.
Step 5: Use this Username in the /config/settings.ini file and your usual password.

Tip: I had to reset my password to get this to work as I don't think I had a non-facebook login password set.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@kingosticks @bluepuma77 @nikaiser @Saik19922 and others