Skip to content

Commit

Permalink
Incorrect assumption that all media_fields are fixed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pvliesdonk committed Jan 6, 2025
1 parent 801bac5 commit 1c61bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beets/ui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1631,8 +1631,8 @@ def update_items(lib, query, album, move, pretend, fields, exclude_fields=None):
# database.
fields.append("path")
if fields is None:
# no fields were provided, update all media fields
item_fields = fields or library.Item._media_fields
# no fields were provided, update all fields
item_fields = fields or library.Item._fields.keys()
if move and "path" not in item_fields:
# move is enabled, add 'path' to the list of fields to update
item_fields.add("path")
Expand Down

0 comments on commit 1c61bd0

Please sign in to comment.