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
@@ -40,6 +40,9 @@ class NeteaseFetcher(BaseFetcher):
def source_name(self) -> str:
return "netease"
def is_available(self, track: TrackMeta) -> bool:
return bool(track.title)
def _search(self, track: TrackMeta, limit: int = 10) -> Optional[int]:
"""Search Netease and return the best-matching song ID.