Skip to content

Commit

Permalink
do not retry
Browse files Browse the repository at this point in the history
This is needed to avoid "too many 429 error responses" error from Spotify API when reaching the API rate-limit.
  • Loading branch information
jmlrt committed Dec 31, 2024
1 parent 5bff634 commit 4340730
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spotfm/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Client:
def __init__(self, client_id, client_secret, redirect_uri=REDIRECT_URI, scope=SCOPE):
handler = CacheFileHandler(cache_path=TOKEN_CACHE_FILE)
self.client = spotipy.Spotify(
retries=0,
auth_manager=SpotifyOAuth(
client_id=client_id,
client_secret=client_secret,
Expand Down

0 comments on commit 4340730

Please sign in to comment.