summaryrefslogtreecommitdiff
path: root/watcher.py
diff options
context:
space:
mode:
Diffstat (limited to 'watcher.py')
-rw-r--r--watcher.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/watcher.py b/watcher.py
index 869a932..79ffc13 100644
--- a/watcher.py
+++ b/watcher.py
@@ -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()