summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--watcher.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/watcher.py b/watcher.py
index 7dbd434..d1e4ab6 100644
--- a/watcher.py
+++ b/watcher.py
@@ -19,6 +19,9 @@ class EventHandler(pyinotify.ProcessEvent):
print("Moved to:", event.pathname)
library.update_track_filename(event.src_pathname, event.pathname)
+ # moving the file may also hint that the metadata has changed
+ library.update_file(event.pathname)
+
def process_IN_MODIFY(self, event):
print("Modified:", event.pathname)
library.update_file(event.pathname)