mirror of
https://github.com/beetbox/beets.git
synced 2026-02-17 12:56:05 +01:00
parent
d0b4af5178
commit
f5637f8a42
1 changed files with 11 additions and 9 deletions
|
|
@ -643,15 +643,17 @@ class CommandBackend(Backend):
|
|||
# tag-writing; this turns the mp3gain/aacgain tool into a gain
|
||||
# calculator rather than a tag manipulator because we take care
|
||||
# of changing tags ourselves.
|
||||
cmd: list[str] = [self.command, "-o", "-s", "s"]
|
||||
if self.noclip:
|
||||
# Adjust to avoid clipping.
|
||||
cmd = [*cmd, "-k"]
|
||||
else:
|
||||
# Disable clipping warning.
|
||||
cmd = [*cmd, "-c"]
|
||||
cmd = [*cmd, "-d", str(int(target_level - 89))]
|
||||
cmd = cmd + [syspath(i.path) for i in items]
|
||||
cmd = [
|
||||
self.command,
|
||||
"-o",
|
||||
"-s",
|
||||
"s",
|
||||
# Avoid clipping or disable clipping warning
|
||||
"-k" if self.noclip else "-c",
|
||||
"-d",
|
||||
str(int(target_level - 89)),
|
||||
*[str(i.filepath) for i in items],
|
||||
]
|
||||
|
||||
self._log.debug("analyzing {} files", len(items))
|
||||
self._log.debug("executing {}", " ".join(map(displayable_path, cmd)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue