SwapnilSoni1999 / spotify-dl

Spotify Downloader and alternative of Spotdl(python) tool made in NodeJS based on youtube-dl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

403 during download

erobin27 opened this issue · comments

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):

  • OS: Mac OS [Apple Chip]
  • Browser: Chrome
  • Version: 119.0.6045.159

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

I just tried again and it worked?...

commented

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

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.

commented

@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