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

Method command

beetsplug/autobpm.py:78–86  ·  view source on GitHub ↗
(self, lib: Library, opts, args: list[str])

Source from the content-addressed store, hash-verified

76 return [cmd]
77
78 def command(self, lib: Library, opts, args: list[str]) -> None:
79 force = self.config["force"].get(bool) or opts.force
80 quiet = self.config["quiet"].get(bool) or opts.quiet
81 self.calculate_bpm(
82 list(lib.items(args)),
83 write=should_write(),
84 force=force,
85 quiet=quiet,
86 )
87
88 def imported(self, _, task: ImportTask) -> None:
89 self.calculate_bpm(

Callers

nothing calls this directly

Calls 4

calculate_bpmMethod · 0.95
should_writeFunction · 0.90
getMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected