from_scratch import: only remove writable fields

When importing with the configuration option ``from_scratch`` set, only remove
writable fields from library. E.g. keep fields like ``format`` and ``bitrate``.

This fixes #2972.
This commit is contained in:
Zsin Skri 2018-07-01 20:23:13 +02:00
parent 0c033bdaf1
commit ba8fcdfd47

View file

@ -564,7 +564,7 @@ class Item(LibModel):
def clear(self):
"""Set all key/value pairs to None."""
for key in self._media_fields:
for key in self._media_tag_fields:
setattr(self, key, None)
def get_album(self):