diff options
Diffstat (limited to 'watcher.py')
-rw-r--r-- | watcher.py | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -13,7 +13,6 @@ import pyinotify from db.db_manager import DbManager from library import MediaLibrary - _LOGGER = logging.getLogger(__name__) @@ -111,14 +110,13 @@ class LibraryWatcher(object): pyinotify.IN_MODIFY if not hasattr(self, "notifier"): - setattr(self, - "notifier", - pyinotify.Notifier(self.wm, EventHandler(library), - timeout=10)) + setattr( + self, "notifier", + pyinotify.Notifier(self.wm, EventHandler(library), timeout=10)) if not hasattr(self, "wdd"): - setattr(self, "wdd", self.wm.add_watch(path, mask, rec=True, - auto_add=True)) + setattr(self, "wdd", + self.wm.add_watch(path, mask, rec=True, auto_add=True)) self.notifier.coalesce_events() |