mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 06:53:27 +01:00
Override FormattedItemMapping.model_keys
model_keys was inferred from `self.keys(True)`, which would include the fallback album keys. Since FormattedItemMapping has its own algorithm for album attributes, we only care about the item's *actual* keys.
This commit is contained in:
parent
72515448ad
commit
a112358f76
1 changed files with 3 additions and 0 deletions
|
|
@ -376,6 +376,9 @@ class FormattedItemMapping(dbcore.db.FormattedMapping):
|
|||
|
||||
def __init__(self, item, for_path=False):
|
||||
super(FormattedItemMapping, self).__init__(item, for_path)
|
||||
# We treat album and item keys specially here,
|
||||
# so exclude transitive album keys from the model's keys.
|
||||
self.model_keys = item.keys(computed=True, with_album=False)
|
||||
self.item = item
|
||||
|
||||
@lazy_property
|
||||
|
|
|
|||
Loading…
Reference in a new issue