From a112358f766260298e4b9d8be9661e85df3a7576 Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Sun, 22 Jul 2018 20:26:23 +0200 Subject: [PATCH] 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. --- beets/library.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beets/library.py b/beets/library.py index 5740f20ee..ba822c513 100644 --- a/beets/library.py +++ b/beets/library.py @@ -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