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

@ -24,8 +24,7 @@ class Bootstrapper(Loggable):
note that because of the way list_directories works we also flush
the import directory as well I think
"""
for d in self.db.list_storable_paths():
self.flush_watch(d, last_ran)
for d in self.db.list_storable_paths(): self.flush_watch(d, last_ran)
def flush_watch(self, directory, last_ran):
"""

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