Fix update test failures

This commit is contained in:
Dang Mai 2016-10-20 20:25:38 -04:00
parent 679918f191
commit f17601e4cd
2 changed files with 4 additions and 6 deletions

View file

@ -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:

View file

@ -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: