cc-4105: fixed handling of list values in mutagen
This commit is contained in:
parent
bcb65c4269
commit
cf3dbd2a97
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue