mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 11:32:30 +01:00
Fix update test failures
This commit is contained in:
parent
679918f191
commit
f17601e4cd
2 changed files with 4 additions and 6 deletions
|
|
@ -767,7 +767,7 @@ class Item(LibModel):
|
|||
album = self.get_album()
|
||||
if album:
|
||||
album.move_art(copy)
|
||||
album.store()
|
||||
album.store(fields_to_store)
|
||||
|
||||
# Prune vacated directory.
|
||||
if not copy:
|
||||
|
|
|
|||
|
|
@ -1086,9 +1086,6 @@ def update_items(lib, query, album, move, pretend, fields):
|
|||
reflect the item's embedded tags.
|
||||
"""
|
||||
with lib.transaction():
|
||||
if fields is None:
|
||||
fields = library.Item._media_fields
|
||||
|
||||
items, _ = _do_query(lib, query, album)
|
||||
|
||||
# Walk through the items and pick up their changes.
|
||||
|
|
@ -1127,8 +1124,9 @@ def update_items(lib, query, album, move, pretend, fields):
|
|||
item._dirty.discard(u'albumartist')
|
||||
|
||||
# Check for and display changes.
|
||||
changed = ui.show_model_changes(item,
|
||||
fields=fields)
|
||||
changed = ui.show_model_changes(
|
||||
item,
|
||||
fields=fields or library.Item._media_fields)
|
||||
|
||||
# Save changes.
|
||||
if not pretend:
|
||||
|
|
|
|||
Loading…
Reference in a new issue