when iterating over item keys, do not return duplicates

... for keys that exist both as Item and Album fields
This commit is contained in:
wisp3rwind 2021-03-18 12:29:39 +01:00
parent c4347960ea
commit 5183fc53ad

View file

@ -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):