MCPcopy
hub / github.com/beetbox/beets / get_search_response

Method get_search_response

beets/metadata_plugins.py:391–401  ·  view source on GitHub ↗

Fetch raw search results for a provider request. Implementations should return records containing source IDs so shared candidate resolution can perform ID-based album and track lookups. :param params: :py:namedtuple:`~SearchParams` named tuple :return: Sequence of I

(self, params: SearchParams)

Source from the content-addressed store, hash-verified

389
390 @abc.abstractmethod
391 def get_search_response(self, params: SearchParams) -> Sequence[R]:
392 """Fetch raw search results for a provider request.
393
394 Implementations should return records containing source IDs so shared
395 candidate resolution can perform ID-based album and track lookups.
396
397 :param params: :py:namedtuple:`~SearchParams` named tuple
398 :return: Sequence of IDResponse dicts containing at least an "id" key for each
399 """
400
401 raise NotImplementedError
402
403 def _search_api(
404 self, query_type: QueryType, query: str, filters: dict[str, str]

Callers 1

_search_apiMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected