mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 19:12:40 +01:00
when iterating over item keys, do not return duplicates
... for keys that exist both as Item and Album fields
This commit is contained in:
parent
c4347960ea
commit
5183fc53ad
1 changed files with 3 additions and 1 deletions
|
|
@ -623,7 +623,9 @@ class Item(LibModel):
|
|||
"""
|
||||
keys = super(Item, self).keys(computed=computed)
|
||||
if with_album and self._cached_album:
|
||||
keys += self._cached_album.keys(computed=computed)
|
||||
keys = set(keys)
|
||||
keys.update(self._cached_album.keys(computed=computed))
|
||||
keys = list(keys)
|
||||
return keys
|
||||
|
||||
def get(self, key, default=None, with_album=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue