mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
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:
parent
0c033bdaf1
commit
ba8fcdfd47
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue