CC-3561: Add button to automatically rescan watched folders.
-done
This commit is contained in:
parent
70bfe031ef
commit
d02607ed94
6 changed files with 32 additions and 11 deletions
|
@ -84,6 +84,9 @@ class AirtimeNotifier(Notifier):
|
|||
self.logger.info("Removing watch on: %s wd %s", watched_directory, wd)
|
||||
mm.wm.rm_watch(wd, rec=True)
|
||||
|
||||
elif m['event_type'] == "rescan_watch":
|
||||
self.bootstrap.sync_database_to_filesystem(str(m['id']), m['directory'])
|
||||
|
||||
elif m['event_type'] == "change_stor":
|
||||
storage_directory = self.config.storage_directory
|
||||
new_storage_directory = m['directory']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue