SwapnilSoni1999 / spotify-dl

Spotify Downloader and alternative of Spotdl(python) tool made in NodeJS based on youtube-dl
MIT License
1.36k stars 147 forks source link

403 during download #217

Closed etr-dev closed 11 months ago

etr-dev commented 11 months ago

Describe the bug I was able to download songs fine and then the very same songs I was just downloading started throwing 403 errors. I tried to login with --l and grant permissions still same error. I then did the headless login, same error.

To Reproduce Steps to reproduce the behavior:

  1. Download song
  2. Repeat?

A clear and concise description of what you expected to happen. The song should just download as normal

Screenshots

image

Desktop (please complete the following information):

Additional context It may be worth mentioning that the callback redirect after login is to an empty localhost page.

etr-dev commented 11 months ago

I just tried again and it worked?...

phyzical commented 11 months ago

sounds like something got lost with first auth not sure..

the redirect back to a random localhost page, is correct

feel free to reopen if you keep hitting this

etr-dev commented 11 months ago

It seems to happen after I use the Spotify-dl a lot. I'm running it in a for loop to download 10 individual songs so I think I am getting this error after running it about 3 times or so.

403 goes away after a break so I'm thinking I am being throttled maybe but idk why it would return 403 for that.

phyzical commented 11 months ago

@erobin27 it could be how the app was designed, as each invocation would probably get a new token.

i cant 100% remember but i think we made it allow multiple urls at once, so could try providing all urls to the cli.

https://github.com/SwapnilSoni1999/spotify-dl/blob/master/lib/setup.js#L310

The code does suggest we support multiple input urls