refactor: add is_available method to fetchers
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user