File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def _apply_metadata(
127127
128128 # Don't overwrite fields with empty values unless the
129129 # field is explicitly allowed to be overwritten.
130- if value is None and field not in nullable_fields :
130+ if ( value is None or value == []) and field not in nullable_fields :
131131 continue
132132
133133 db_obj [field ] = value
Original file line number Diff line number Diff line change @@ -36,9 +36,12 @@ New features
3636 3. Comma followed by a space
3737 4. Slash wrapped by spaces
3838
39- ..
40- Bug fixes
41- ~~~~~~~~~
39+ Bug fixes
40+ ~~~~~~~~~
41+
42+ - Fix an issue with autotagging where an empty list was previously not
43+ considered as an 'empty' value, which caused beets to overwrite existing
44+ metadata with empty values instead of leaving them unchanged. :bug: `6403 `
4245
4346For plugin developers
4447~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -229,7 +229,6 @@ def setUp(self):
229229 },
230230 ]
231231
232- @pytest .mark .xfail (reason = "Album genres are not applied to tracks" )
233232 def test_autotag_items (self ):
234233 self ._apply ()
235234
You can’t perform that action at this time.
0 commit comments