From 1e18576a8841cdc344780a194aa7166f69754e26 Mon Sep 17 00:00:00 2001 From: kuelteabmas Date: Sun, 18 May 2025 22:03:02 -0400 Subject: [PATCH] bugfix(spotify): Fixed reauthentication issue * Reinserting self.authenticate() back into 401 reauthentication flow --- app/providers/spotify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/providers/spotify.py b/app/providers/spotify.py index ac75a71..b52e02b 100644 --- a/app/providers/spotify.py +++ b/app/providers/spotify.py @@ -191,6 +191,7 @@ class SpotifyClient(MusicProviderClient): # if the response is unauthorized, we need to reauthenticate if response.status_code == 401: l.debug("reauthenticating") + self.authenticate() headers['authorization'] = f'Bearer {self.access_token}' headers['client-token'] = self.client_token.get('token','') response = requests.get(f"{self.base_url}/{endpoint}", headers=headers, params=params, cookies=self.cookies)