From 7fd470a793f3ebed7465df3a4629257943c1bd90 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Wed, 11 Oct 2023 20:39:53 -0400 Subject: [PATCH] resume after reauthentication --- beetsplug/spotify.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 160e7300e..239e143e2 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -190,6 +190,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): f'Reauthenticating.' ) self._authenticate() + return self._handle_response(request_type, url, params=params) elif e.response.status_code == 404: raise SpotifyAPIError(f'API Error: {e.response.status_code}\n' f'URL: {url}\nparams: {params}') @@ -228,8 +229,6 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): album_data = self._handle_response( requests.get, self.album_url + spotify_id ) - if album_data is None: - return None if album_data['name'] == "": self._log.debug("Album removed from Spotify: {}", album_id) return None