refactor: add is_available method to fetchers

This commit is contained in:
2026-03-31 16:56:49 +02:00
parent 03acda4478
commit d3090ceb1c
9 changed files with 29 additions and 12 deletions
+3
View File
@@ -55,6 +55,9 @@ class SpotifyFetcher(BaseFetcher):
def source_name(self) -> str:
return "spotify"
def is_available(self, track: TrackMeta) -> bool:
return bool(track.trackid) and bool(SPOTIFY_SP_DC)
# ─── Auth helpers ────────────────────────────────────────────────
def _get_server_time(self, client: httpx.Client) -> Optional[int]: