cc-4105: fixed handling of list values in mutagen

This commit is contained in:
Rudi Grinberg 2012-08-07 17:12:40 -04:00
parent bcb65c4269
commit cf3dbd2a97
2 changed files with 3 additions and 2 deletions

View file

@ -127,6 +127,8 @@ class Metadata(Loggable):
# genre is one example. In that case mutagen will return a list
# of values
metadata[k] = v[0]
#if len(v) == 1: metadata[k] = v[0]
#else: raise Exception("Unknown mutagen %s:%s" % (k,str(v)))
else: metadata[k] = v
self.__metadata = {}
# Start populating a dictionary of airtime metadata in __metadata