mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
Change in beets so it only writes tags that have values. This should
prevent things like disc reading as "0" instead of null. To reiterate: the tag isn't blank - it's not written at all. I'm not sure what implications that has.
This commit is contained in:
@@ -204,7 +204,8 @@ class Item(object):
|
||||
"""
|
||||
f = MediaFile(syspath(self.path))
|
||||
for key in ITEM_KEYS_WRITABLE:
|
||||
setattr(f, key, getattr(self, key))
|
||||
if getattr(self, key): #make sure it has a value before we set it and create blank tags with wrong types
|
||||
setattr(f, key, getattr(self, key))
|
||||
f.save()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user