abhishekmj303 / ytm2spt

Transfer Playlists from YouTube Music to Spotify
https://pypi.org/project/ytm2spt
GNU General Public License v3.0
130 stars 7 forks source link

Remove quotes from redirect URI in env.bat #13

Closed YeapGuy closed 4 months ago

YeapGuy commented 4 months ago

Fixes issue #6 ‒ the quotes in the env variable get passed on to the generated URL, which looks like:

https://accounts.spotify.com/authorize?client_id=<client_id>&response_type=code&redirect_uri=%22http%3A%2F%2Flocalhost%3A8888%2Fcallback%22&scope=playlist-read-collaborative+playlist-modify-private+playlist-modify-public+playlist-read-private+ugc-image-upload

Notice the encoded quotes "" around the redirect URL ‒ this is invalid and results in an error. Removing it from the env variable fixes it ‒ tested and verified on Windows.

(My editor also automatically fixed the missing line ending at the end of the file)

abhishekmj303 commented 4 months ago

LGTM. Thank you for contributing.