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
@@ -25,6 +25,9 @@ class LocalFetcher(BaseFetcher):
def source_name(self) -> str:
return "local"
def is_available(self, track: TrackMeta) -> bool:
return track.is_local
def fetch(
self, track: TrackMeta, bypass_cache: bool = False
) -> Optional[LyricResult]: