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

Illegal redirect_uri #6

Closed Brahamdeep closed 5 months ago

Brahamdeep commented 5 months ago

when i run the script i get redirected to - https://accounts.spotify.com/authorize?client_id=+52f3fd98b3854a7caa1ac655ea0508b5&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

and in the cmd it asks me to enter the url you were directed to:

what to do now ??

abhishekmj303 commented 5 months ago

Can you tell what steps you done and which command you ran?

Brahamdeep commented 5 months ago

Pass just the youtube playlist ID

Set a custom name for the playlist

$ python src/main.py -yt "CLAK5uy_lBNUteBRencHzKelu5iDHwLF6mYqjL-JU" -spname "Pop Certified"

i ran this one with obviously a different playlist and name

abhishekmj303 commented 5 months ago

When the link only opened in the browser and the browser already had Spotify logged in, you should ideally be redirected back to the app.

But if the browser doesn't redirect back when logged in and your url looks like this "http://localhost:8888/callback?code=" or something similar. You can copy that code and paste it into the terminal.

If you are not even getting the localhost url in the browser and the page keeps loading, you can just close the tab and the app should continue working.

abhishekmj303 commented 5 months ago

If you are still unsure what's happening, you can share a screenshot or video so that I can help you with the problem.

Brahamdeep commented 5 months ago

Dude i tried the same steps which i tried yesterday and it worked now before trying to put it into the code 💀. Thanks anyway dude loved your app. Also side question i have 1128 tracks so do you have any idea how much time will this take ?!?!

abhishekmj303 commented 5 months ago

Great to know it works now! Not sure what was happening before.

As far as I have used, it takes around 2 to 3 minutes for a 50 songs playlist. Not sure if it would be the same for larger playlists.

If the issue is resolved close the issue.

Brahamdeep commented 5 months ago

Ohk thank you for you help again :D