mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Fixed monitoring with on_modified (Thanks JayZed!)
This commit is contained in:
1 parent
d5a918dfb8
commit
f2aa233e01
1 file changed
+1
-1
+1
-1
@@ -616,7 +616,7 @@ def path_mapping(fullpath):
|
|||||||
if monitor:
|
if monitor:
|
||||||
# Define a handler class that will process new files
|
# Define a handler class that will process new files
|
||||||
class NewFileHandler(FileSystemEventHandler):
|
class NewFileHandler(FileSystemEventHandler):
|
||||||
def on_created(self, event):
|
def on_modified(self, event):
|
||||||
# Only process if it's a file
|
# Only process if it's a file
|
||||||
if not event.is_directory:
|
if not event.is_directory:
|
||||||
file_path = event.src_path
|
file_path = event.src_path
|
||||||
|
|||||||
Reference in new issue
Block a user