diff --git a/beetsplug/parentwork.py b/beetsplug/parentwork.py index 4ddef1c14e..107bf047de 100644 --- a/beetsplug/parentwork.py +++ b/beetsplug/parentwork.py @@ -90,7 +90,7 @@ def func(lib, opts, args): write = ui.should_write() for item in lib.items(ui.decargs(args)): - changed = self.find_work(item, force_parent) + changed = self.find_work(item, force_parent, verbose=True) if changed: item.store() if write: @@ -117,7 +117,7 @@ def imported(self, session, task): force_parent = self.config["force"].get(bool) for item in task.imported_items(): - self.find_work(item, force_parent) + self.find_work(item, force_parent, verbose=False) item.store() def get_info(self, item, work_info): @@ -166,7 +166,7 @@ def get_info(self, item, work_info): return parentwork_info - def find_work(self, item, force): + def find_work(self, item, force, verbose): """Finds the parent work of a recording and populates the tags accordingly. @@ -222,16 +222,17 @@ def find_work(self, item, force): if work_date: item["work_date"] = work_date - return ui.show_model_changes( - item, - fields=[ - "parentwork", - "parentwork_disambig", - "mb_parentworkid", - "parent_composer", - "parent_composer_sort", - "work_date", - "parentwork_workid_current", - "parentwork_date", - ], - ) + if verbose: + return ui.show_model_changes( + item, + fields=[ + "parentwork", + "parentwork_disambig", + "mb_parentworkid", + "parent_composer", + "parent_composer_sort", + "work_date", + "parentwork_workid_current", + "parentwork_date", + ], + )