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

Function find_metadata_source_plugins

beets/metadata_plugins.py:47–51  ·  view source on GitHub ↗

Return a list of all loaded metadata source plugins.

()

Source from the content-addressed store, hash-verified

45
46@cache
47def find_metadata_source_plugins() -> list[MetadataSourcePlugin]:
48 """Return a list of all loaded metadata source plugins."""
49 # TODO: Make this an isinstance(MetadataSourcePlugin, ...) check in v3.0.0
50 # This should also allow us to remove the type: ignore comments below.
51 return [p for p in find_plugins() if hasattr(p, "data_source")] # type: ignore[misc]
52
53
54@cache

Callers 3

get_metadata_sourceFunction · 0.85
wrapperFunction · 0.85
get_penaltyFunction · 0.85

Calls 1

find_pluginsFunction · 0.85

Tested by

no test coverage detected