@@ -89,7 +89,7 @@ def func(lib, opts, args):
89
89
write = ui .should_write ()
90
90
91
91
for item in lib .items (ui .decargs (args )):
92
- changed = self .find_work (item , force_parent )
92
+ changed = self .find_work (item , force_parent , verbose = True )
93
93
if changed :
94
94
item .store ()
95
95
if write :
@@ -116,7 +116,7 @@ def imported(self, session, task):
116
116
force_parent = self .config ["force" ].get (bool )
117
117
118
118
for item in task .imported_items ():
119
- self .find_work (item , force_parent )
119
+ self .find_work (item , force_parent , verbose = False )
120
120
item .store ()
121
121
122
122
def get_info (self , item , work_info ):
@@ -165,7 +165,7 @@ def get_info(self, item, work_info):
165
165
166
166
return parentwork_info
167
167
168
- def find_work (self , item , force ):
168
+ def find_work (self , item , force , verbose ):
169
169
"""Finds the parent work of a recording and populates the tags
170
170
accordingly.
171
171
@@ -221,16 +221,17 @@ def find_work(self, item, force):
221
221
222
222
if work_date :
223
223
item ["work_date" ] = work_date
224
- return ui .show_model_changes (
225
- item ,
226
- fields = [
227
- "parentwork" ,
228
- "parentwork_disambig" ,
229
- "mb_parentworkid" ,
230
- "parent_composer" ,
231
- "parent_composer_sort" ,
232
- "work_date" ,
233
- "parentwork_workid_current" ,
234
- "parentwork_date" ,
235
- ],
236
- )
224
+ if verbose :
225
+ return ui .show_model_changes (
226
+ item ,
227
+ fields = [
228
+ "parentwork" ,
229
+ "parentwork_disambig" ,
230
+ "mb_parentworkid" ,
231
+ "parent_composer" ,
232
+ "parent_composer_sort" ,
233
+ "work_date" ,
234
+ "parentwork_workid_current" ,
235
+ "parentwork_date" ,
236
+ ],
237
+ )
0 commit comments