spotify2tidal / spotify_to_tidal

A command line tool for importing your Spotify playlists into Tidal
GNU Affero General Public License v3.0
283 stars 51 forks source link

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

Open mannp opened 3 months ago

mannp commented 3 months ago
->> 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 commented 1 month ago

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 commented 1 month ago

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

(i.e. add that value here)