refactor: add is_available method to fetchers

This commit is contained in:
2026-03-31 16:56:49 +02:00
parent 8e0f3c7af5
commit e8d9299939
9 changed files with 29 additions and 12 deletions
+3
View File
@@ -30,6 +30,9 @@ class CacheSearchFetcher(BaseFetcher):
def self_cached(self) -> bool:
return True
def is_available(self, track: TrackMeta) -> bool:
return bool(track.title)
def fetch(
self, track: TrackMeta, bypass_cache: bool = False
) -> Optional[LyricResult]: