Open mclopes opened 2 years ago
I've gotten some success by moving the search with release but then in other songs it gets triggered by a 404.
I think the best solution would be an if statement to handle 404s. i tried coding one myself but didnt work : (
Same here, let's hope someone smart can fix this :(
found the problem in the spotipy repo - my quickfix would be to limit the query to 99 chars via spotify.search(query[:99])
instead of spotify.search(query)
additionally i trimmed the title, name, mix, artists, remixers, and release info to 25 and removed all brackets from the string like this: "title": track["title"].replace("[", " ").replace("]", " ").replace("(", " ").replace(")", " ").strip()[:25]
it works now on my machine but its really not an ideal solution
Thank you so much @benjaminlewandowski ! Limiting it to 99 worked.
The trimming part is still a little over my head but I'm going to keep trying.
Hi,
I've been running this script for about a year but recently I started getting an error. I am running on terminal on OSX.
It seems some tracks are returning a 404 error. Its unfortunately happening with the first track on the all genres playlist but if i remove that playlist and go straight to Afro House it finds some tracks and works as normal until one returns a 404.
Is there any way to skip a track if it returns a 404?
Any help that you can provide will be greatly appreciated.