univrsal / tuna

Song information plugin for obs-studio
GNU General Public License v2.0
671 stars 56 forks source link

Spotify Login #160

Closed melodanino closed 2 years ago

melodanino commented 2 years ago

I accidentally logged into the wrong Spotify account and now I can't log out. Any help on how I can do the authenfication over again would be much appreciated. Thanks!

Glazami commented 2 years ago

I already wrote about this much earlier, the person under my post replied that he had the same problem. But the discussion was closed for some reason. Have been experiencing this issue since I got the last two updates. I am forced to use the output by last.fm But with it the delay is longer and album covers are rarely loaded.

Glazami commented 2 years ago

To authorize, you need to go to the developer section on spotify, https://developer.spotify.com/dashboard/, log in with your account and select "create an app" in the "dashboard" section, then write the name, description and go further, after then click "edit settings" and in the "redirect urls" field add the link "https://univrsal.github.io/auth/token" and save, after that in the description of your application on spotify there is a "Client ID", you need to copy the id to tuna, in the spotify section, the client ID. after that, just below you need to click the button to open the input page, then a page will open in the browser there will be an authorization code, you need to copy it into the authorization code field in tuna, then click start the token. Authorization will take place and all other fields will be automatically filled in. then you can use tuna. But last 2 updates, it doesn't work. More precisely, this works exactly 1 audio recording, after which the change of audio recordings does not occur.

I think the developer should add an authorization method to the description, because once I had to remember how to do it and it was hard. You just need to add this instruction or make it with screenshots.

Glazami commented 2 years ago

And yet, after applying the spotify settings in tuna, obs completely freezes and then the work is completed.

univrsal commented 2 years ago

You're gonna need to be a bit more specific with what exactly your issue is

Glazami commented 2 years ago

You're gonna need to be a bit more specific with what exactly your issue is

First, when you click the apply button, the settings are not applied, and the program freezes and stops responding, sometimes obs crashes due to "tuna".

I receive authorization in the spotify, fill in all the fields and apply the setting, I perform a request for a token, a message is received in response about the successful receipt of a token, it starts and I receive data about the audio recording being played. But already on the next track, the data is not updated at all. I go to the "tuna" settings and execute the token request again, but in response I get a message about a failed request = 2021.10.17 17:53 = { "error": "invalid_grant", "error_description": "Invalid authorization code" }

Next, I click to open the login page, again I get the authentication code, I copy it again, I make the token request again, the request is successful again, I get data about one audio recording, and then the data is not updated.

Authorization is enough for one audio recording, after which it is necessary to authorize from the very beginning.

univrsal commented 2 years ago

This doesn't seem to be related to the original issue. Please fill out a separate bug report and follow the issue template closely.

melodanino commented 2 years ago

You're gonna need to be a bit more specific with what exactly your issue is

I logged into the wrong Spotify account when I was authorizing Tuna, and have no way of changing which account is linked. I was wondering if there was a way for me to authenticate it again but with a different Spotify account.

univrsal commented 2 years ago

I assume that when you go through the process again it just automatically redirects you without asking for the Spotify login again, right? You can either log out of Spotify in your browser, or deauthorize tuna on the current accout https://accounts.spotify.com/en/login image Then if you go through the login process again, it should work. If the issue persists, please add your obs studio log.

melodanino commented 2 years ago

Okay thanks a ton! I appreciate the quick response too!