From 8a97fba2ab4df90da870fe09471bcf4c128e9ae3 Mon Sep 17 00:00:00 2001 From: Will Burden <25230174+willburden@users.noreply.github.com> Date: Fri, 12 Dec 2025 17:28:11 +0000 Subject: [PATCH] Fix ReplacePlugin CLI command --- beetsplug/replace.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beetsplug/replace.py b/beetsplug/replace.py index b585a13c1..d6557fc0c 100644 --- a/beetsplug/replace.py +++ b/beetsplug/replace.py @@ -10,6 +10,8 @@ from beets import ui, util from beets.plugins import BeetsPlugin if TYPE_CHECKING: + import optparse + from beets.library import Item, Library @@ -21,7 +23,7 @@ class ReplacePlugin(BeetsPlugin): cmd.func = self.run return [cmd] - def run(self, lib: Library, args: list[str]) -> None: + def run(self, lib: Library, opts: optparse.Values, args: list[str]) -> None: if len(args) < 2: raise ui.UserError("Usage: beet replace ") @@ -61,7 +63,7 @@ class ReplacePlugin(BeetsPlugin): def select_song(self, items: list[Item]): """Present a menu of matching songs and get user selection.""" - ui.print_("\nMatching songs:") + ui.print_("Matching songs:") for i, item in enumerate(items, 1): ui.print_(f"{i}. {util.displayable_path(item)}")