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

Username not being picked up when getting a token from Spotify? #70

Open
mannp opened this issue Jun 22, 2024 · 2 comments
Open

Username not being picked up when getting a token from Spotify? #70

mannp opened this issue Jun 22, 2024 · 2 comments

Comments

@mannp
Copy link
Contributor

mannp commented Jun 22, 2024

->> spotify_to_tidal --sync-favorites
Opening Spotify session
Error opening Spotify sesion; could not get token for username:

Hi there, I have entered the details in the config and spotify_to_tidal takes me to the spotify website to login and authorize the connection, but then a token does not appear to be picked up?

Is there a way to manually add that returned token at all?

Thanks.

I have bumped the spotipy version as the older version is not available on my distro, so not sure if that is the issue.

 "spotipy~=2.21.0",
  "spotipy>=2.23.0",
@timrae
Copy link
Collaborator

timrae commented Aug 19, 2024

Hi I've checked 2.23.0 and it works fine for me, so that's not the issue. I don't think there's a way to manually set the token, this is the code that gets called here, which throws a SpotifyOauthError and spotify_to_tidal prints that error message you see. Let me know if you figure out what the issue was.

@timrae
Copy link
Collaborator

timrae commented Aug 19, 2024

Actually I think you can manually enter the token if you set open_browser=False in the constructor.

(i.e. add that value here)

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

2 participants