mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Merged sbusers beets changes
This commit is contained in:
@@ -378,8 +378,8 @@ def apply_metadata(items, info):
|
|||||||
|
|
||||||
# Compilation flag.
|
# Compilation flag.
|
||||||
item.comp = info['va']
|
item.comp = info['va']
|
||||||
item.comments = 'tagged by headphones/beets'
|
item.comments = 'tagged by headphones/beets'
|
||||||
|
|
||||||
def match_by_id(items):
|
def match_by_id(items):
|
||||||
"""If the items are tagged with a MusicBrainz album ID, returns an
|
"""If the items are tagged with a MusicBrainz album ID, returns an
|
||||||
info dict for the corresponding album. Otherwise, returns None.
|
info dict for the corresponding album. Otherwise, returns None.
|
||||||
|
|||||||
@@ -204,7 +204,8 @@ class Item(object):
|
|||||||
"""
|
"""
|
||||||
f = MediaFile(syspath(self.path))
|
f = MediaFile(syspath(self.path))
|
||||||
for key in ITEM_KEYS_WRITABLE:
|
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()
|
f.save()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user