mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
more lint
This commit is contained in:
parent
4302ca97eb
commit
8305821488
1 changed files with 7 additions and 2 deletions
|
|
@ -79,6 +79,7 @@ class APIError(Exception):
|
||||||
|
|
||||||
class AudioFeaturesUnavailableError(Exception):
|
class AudioFeaturesUnavailableError(Exception):
|
||||||
"""Raised when the audio features API returns 403 (deprecated/unavailable)."""
|
"""Raised when the audio features API returns 403 (deprecated/unavailable)."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -145,8 +146,12 @@ class SpotifyPlugin(
|
||||||
self.config["client_id"].redact = True
|
self.config["client_id"].redact = True
|
||||||
self.config["client_secret"].redact = True
|
self.config["client_secret"].redact = True
|
||||||
|
|
||||||
self.audio_features_available = True # Track if audio features API is available
|
self.audio_features_available = (
|
||||||
self._audio_features_lock = threading.Lock() # Protects audio_features_available
|
True # Track if audio features API is available
|
||||||
|
)
|
||||||
|
self._audio_features_lock = (
|
||||||
|
threading.Lock()
|
||||||
|
) # Protects audio_features_available
|
||||||
self.setup()
|
self.setup()
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue