Skip to content

Commit

Permalink
Propagate album flex attr mods to items
Browse files Browse the repository at this point in the history
It seems that _deleting_ flex attrs from an album already propagate to items.
Now also _modifications_ of album flex attrs propagate to items.
  • Loading branch information
JOJ0 committed Jul 13, 2023
1 parent 9481402 commit a00bafe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,6 +1385,8 @@ def store(self, fields=None):
track_updates[key] = self[key]
elif key not in self:
track_deletes.add(key)
else: # Must be a flex attr
track_updates[key] = self[key]

with self._db.transaction():
super().store(fields)
Expand Down

0 comments on commit a00bafe

Please sign in to comment.