CC-2494: Uploading songs getting a 500 error (shows as yellow ! in the UI)

-fixed
-also made it so that files deleted via the UI are deleted on the FS as well.
This commit is contained in:
martin 2011-07-06 13:54:52 -04:00
parent 9594dd7078
commit 3d52db5211
5 changed files with 36 additions and 16 deletions

View file

@ -104,6 +104,12 @@ class AirtimeNotifier(Notifier):
self.config.storage_directory = new_storage_directory
mm.watch_directory(new_storage_directory)
elif m['event_type'] == "file_delete":
self.logger.info("Deleting file: %s ", m['filepath'])
mm = self.proc_fun()
mm.add_filepath_to_ignore(m['filepath'])
os.unlink(m['filepath'])
#update airtime with information about files discovered in our