mirror of
https://github.com/majmongoose/PageBot.git
synced 2026-08-25 21:23:36 -04:00
Update pagebot.py
This commit is contained in:
+3
-1
@@ -40,9 +40,11 @@ class MyHandler(FileSystemEventHandler):
|
||||
global last_file_time
|
||||
if event.is_directory:
|
||||
return
|
||||
last_file_time = time.time()
|
||||
filepath = event.src_path
|
||||
filename, file_extension = os.path.splitext(filepath)
|
||||
if filename.endswith('_stt'):
|
||||
return
|
||||
last_file_time = time.time()
|
||||
if file_extension.lower() == '.amr':
|
||||
with _processing_lock:
|
||||
if filepath in _processing_files:
|
||||
|
||||
Reference in New Issue
Block a user