CC-2633: media monitor crashes on non-ascii files and metadata

- fixed bug for the case where mutagen return None for metadata
- fixed bug for non-ascii files and metadata
This commit is contained in:
James 2011-08-04 18:36:40 -04:00
parent 6c6776e2ce
commit 938c503e85
5 changed files with 49 additions and 28 deletions

View file

@ -70,7 +70,8 @@ try:
#create 5 worker threads
wp = MediaMonitorWorkerProcess()
for i in range(5):
t = Thread(target=wp.process_file_events, args=(multi_queue, notifier))
threadName = "Thread #%d" % i
t = Thread(target=wp.process_file_events, name=threadName, args=(multi_queue, notifier))
t.start()
wdd = notifier.watch_directory(storage_directory)