Closed domlysi closed 2 years ago
I'm having the exact same issue
Same here
Fix it please
Experienced the same event today, and songs would not initiate download. Tried with playlists of varying sizes. Single songs would work, but any playlist greater than 3 or 4 tracks would fail.
.spotdl-cache
file, then try againIn Windows, the default working directory is your user folder C:\Users\yourname\
You can also try reinstall spotDL & its dependencies pip install -U --force spotdl
It seems like this may be an issue with spotipy?
I am also experiencing this issue.
In my opinion, spotfify-download should handle the http404 or SpotifyException instead just exciting out.
spotify_client.track(spotify_url)
Is basically an GET request method.
To everyone in this thread, doing the following has seemed to work with a playlist of 39 songs:
Navigate to your working directory (where you are running spotDL) and delete the .spotdl-cache file, then try again
In Windows, the default working directory is your user folder C:\Users\yourname\
To everyone in this thread, doing the following has seemed to work with a playlist of 39 songs:
Navigate to your working directory (where you are running spotDL) and delete the .spotdl-cache file, then try again
In Windows, the default working directory is your user folder C:\Users\yourname\
I tried it and it still doesn't work.
This fix doesn't work (at least on Linux)
I'm experiencing the same issue, not only with big playlists, but also with albums which contain ~16 songs.
So I fixed it in my fork: https://github.com/domlysi/spotify-downloader
I'm new to contributing, so I don't really know what and how to do it. But you guys can clone the fork and try it.
it's already fixed on dev
branch. I will release new update later today.
Keep in mind that it's only a temporary fix, I will investigate this issue more thoroughly later this week
Update spotDL from dev
pip uninstall spotdl
pip install -U https://codeload.github.com/spotDL/spotify-downloader/zip/dev
Great to hear. I tried the following workaround which I found on Discord, and it works fine, so this can also be used as a temporary fix:
For me both "workarrounds" do not work. I got the same error on all playlists with more the 3 or 4 items ...
Maybe it is a restriction on spotify API.
Before I got this error I use the params
--dt 20 --st 10
Now I try with:
--dt 1 --st 1
and everything works fine. no 404 errors
Hello, guys. I don't know if it might be the problem, but make sure your Playlist is in "Public". I just changed mine from "Private" to "Public", and it managed to download the songs. I still get some 404 of some songs, tho, but I think that's common as some of them are not in YouTube.
new version has been released with a fix. Please update
pip install -U spotdl
System Operating System (OS)
Linux
Python Version
3.8 (CPython)
Install Source
GitHub
Install version / commit hash
3.9.4
Expected Behavior vs Actual Behavior
I was trying to download a playlist containing a bigger amount of songs. I noticed that while fetching the names and looking them up on YouTube, I got random HTTP 404 on requests going to Spotify. With every run, it randomly appears on songs, that definitely exist (I checked the URL manually).
I'm guessing, that there is a rate limit or something similar on Spotify's end.
My suggestion - that I also already tested locally - would be to retry the failed requests instead of exiting out and to continue downloading the rest instead of just failing.
Steps to reproduce
Traceback
Other details
Easy to go solution would be to wrap "from_url" with the "retry" decorator (https://pypi.org/project/retry/)