MCPcopy Index your code
hub / github.com/beetbox/beets / get_metadata_source

Function get_metadata_source

beets/metadata_plugins.py:55–59  ·  view source on GitHub ↗

Get metadata source plugin by name.

(name: str)

Source from the content-addressed store, hash-verified

53
54@cache
55def get_metadata_source(name: str) -> MetadataSourcePlugin | None:
56 """Get metadata source plugin by name."""
57 name = name.lower()
58 plugins = find_metadata_source_plugins()
59 return next((p for p in plugins if p.data_source.lower() == name), None)
60
61
62@contextmanager

Callers 3

mbMethod · 0.90
album_for_idFunction · 0.85
track_for_idFunction · 0.85

Calls 1

Tested by

no test coverage detected