mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 05:23:05 +01:00
Merge branch 'master' into deezer_error
This commit is contained in:
commit
df2d6ae753
2 changed files with 4 additions and 0 deletions
|
|
@ -217,6 +217,9 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
|
|||
elif e.response.status_code == 503:
|
||||
self._log.error("Service Unavailable.")
|
||||
raise SpotifyAPIError("Service Unavailable.")
|
||||
elif e.response.status_code == 502:
|
||||
self._log.error("Bad Gateway.")
|
||||
raise SpotifyAPIError("Bad Gateway.")
|
||||
elif e.response is not None:
|
||||
raise SpotifyAPIError(
|
||||
f"{self.data_source} API error:\n{e.response.text}\n"
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@ Bug fixes:
|
|||
|
||||
* :doc:`/plugins/deezer`: Improve Deezer plugin error handling and set requests timeout to 10 seconds.
|
||||
:bug:`4983`
|
||||
* :doc:`/plugins/spotify`: Add bad gateway (502) error handling.
|
||||
* :doc:`/plugins/spotify`: Add a limit of 3 retries, instead of retrying endlessly when the API is not available.
|
||||
* Fix a crash when the Spotify API timeouts or does not return a `Retry-After` interval.
|
||||
:bug:`4942`
|
||||
|
|
|
|||
Loading…
Reference in a new issue