summaryrefslogtreecommitdiff
path: root/watcher.py
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@gmail.com>2019-06-30 11:12:05 +0100
committerMichaël Ball <michael.ball@gmail.com>2019-06-30 11:12:05 +0100
commita87517a0b385f1a68dd80e7dabf7843955c95ab9 (patch)
tree696f1e2a45ab7c0db57ce562517790cb73247b53 /watcher.py
parent1acbc1e85d6a0af47c236c48b8c5a1b504871d96 (diff)
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()