feat: add metadata enrichers & refactor

This commit is contained in:
2026-03-31 06:08:16 +02:00
parent d76b25e250
commit 4e83e6be15
19 changed files with 363 additions and 60 deletions
+8 -1
View File
@@ -17,7 +17,14 @@ class BaseFetcher(ABC):
"""Name of the fetcher source."""
pass
@property
def self_cached(self) -> bool:
"""True if this fetcher manages its own cache (skip per-source cache check)."""
return False
@abstractmethod
def fetch(self, track: TrackMeta) -> Optional[LyricResult]:
def fetch(
self, track: TrackMeta, bypass_cache: bool = False
) -> Optional[LyricResult]:
"""Fetch lyrics for the given track. Returns None if unable to fetch."""
pass