Bug fixes: Hang on disambiguation, various artists defaulting to artist field, sbusers beets changes

This commit is contained in:
Remy
2011-08-11 19:53:30 -07:00
parent d464afde90
commit 6467eaa7cd
9 changed files with 73 additions and 30 deletions
+2 -2
View File
@@ -378,8 +378,8 @@ def apply_metadata(items, info):
# Compilation flag.
item.comp = info['va']
item.comments = 'tagged by headphones/beets'
item.comments = 'tagged by headphones/beets'
def match_by_id(items):
"""If the items are tagged with a MusicBrainz album ID, returns an
info dict for the corresponding album. Otherwise, returns None.
+2 -1
View File
@@ -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()