Open Remheob opened 1 week ago
Encountered the same problem on any playlist how many tracks does not matter, some rate limit is hit at the first song when using spotdl without spotify credentials. (Same with spotipy)
Problem occurs sometimes also with a single song ( no playlist), after waiting some time and retry : the single song suddenly starts downloading without error.
Found a solution for anyone reading : Signup with spotify developer account. (redirect url use by me : https://development.spotify.com, the rest is obvious) Copy your Client_ID and Secret_ID to notepad Use those with spotdl as parameters ( see help on how to use with -- clientID and --clientSecret).
Your problem will be solved this way and you can download playlists again without 429 error. I think this error is triggered on the spotify platform and not on spotdl
On spotipy (underlaying for spotdl) they write about new rate limit mechanisam. I think its more strict on anonymous requests.
The error message comes when it can not find the equivalent link on youtube I am guessing. I wrote a little bash file that goes thru track links in a .vim file (manually copy pasted from the album) and downloads the ones it can find and skips the ones it can't.
if [ $# -eq 0 ]; then
echo "Usage: $0
while IFS= read -r link do if [[ ! -z "$link" ]]; then echo "Downloading: $link"
spotdl download "$link"
if [ $? -eq 0 ]; then
echo "Download completed: $link"
else
echo "Error downloading: $link"
continue
fi
fi
The error message comes when it can not find the equivalent link on youtube I am guessing. I wrote a little bash file that goes thru track links in a .vim file (manually copy pasted from the album) and downloads the ones it can find and skips the ones it can't.
I dont agree, and tried what you said to see if it cannot find. True in some cases but not all cases. Proof comes with the working download if you supply clientID and cliendSecret into the request. ( when it was previous not working it is working this way, if a file not found it will download the rest ánd gives a message for the not found file)
I was able to download a playlist > 100 tracks this way. I am sure its on the spotify side initiated with 3 missing tracks
System OS
Windows
Python Version
3.11 (CPython)
Install Source
pip / PyPi
Install version / commit hash
v4.2.8
Expected Behavior vs Actual Behavior
Wanted do download a playlist but it showd up some error. Tried it with an single song and it worked.
Steps to reproduce - Ensure to include actual links!
I hope u can help me. At the end it says: The command ‘pt’ is either misspelled or could not be found.
Traceback
Other details
No response