Skip to content

Commit

Permalink
retry on 404
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat authored Apr 12, 2022
1 parent 4a06d5a commit b25e879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotdl/search/spotify_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def init(cls, client_id: str, client_secret: str, user_auth: bool) -> "Singleton
)

# Create instance
cls._instance = super().__call__(auth_manager=credential_manager)
cls._instance = super().__call__(auth_manager=credential_manager, status_forcelist=(429, 500, 502, 503, 504, 404))

# Return instance
return cls._instance
Expand Down

1 comment on commit b25e879

@sema94504
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After apply this changes, for big playlists:
spotipy.exceptions.SpotifyException: http status: 429, code:-1 - /v1/tracks/3QuJ4TqND9JE7cqAkIrgYr:
Max Retries, reason: too many 500 error responses

Please sign in to comment.